mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
repo: Fix leak of superblock fds when generating summary
Related: https://github.com/ostreedev/ostree/issues/920 Closes: #921 Approved by: alexlarsson
This commit is contained in:
parent
e0e07e2a48
commit
5de201df26
@ -4549,7 +4549,6 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
|
||||
g_autoptr(GInputStream) in_stream = g_unix_input_stream_new (superblock_file_fd, FALSE);
|
||||
if (!in_stream)
|
||||
return FALSE;
|
||||
superblock_file_fd = -1; /* Transfer ownership */
|
||||
|
||||
g_autofree guchar *csum = NULL;
|
||||
if (!ot_gio_checksum_stream (in_stream,
|
||||
|
Loading…
x
Reference in New Issue
Block a user