repo: Fix double close() in summary generation

Happened to notice this while doing a style port.

Closes: #849
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-05-10 22:21:27 -04:00 committed by Atomic Bot
parent e6f17b949d
commit 964ca9d434

View File

@ -4582,6 +4582,7 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
in_stream = g_unix_input_stream_new (superblock_file_fd, TRUE);
if (!in_stream)
goto out;
superblock_file_fd = -1; /* Transfer ownership */
if (!ot_gio_checksum_stream (in_stream,
&csum,