Skip to content

Commit 0efd309

Browse files
Seija KijinAZero13
authored andcommitted
bundle-url: always close child_out before leaving the function
Otherwise, child_out may always be left open Signed-off-by: Seija Kijin <[email protected]>
1 parent d882f38 commit 0efd309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundle-uri.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ static int download_https_uri_to_file(const char *file, const char *uri)
337337
cleanup:
338338
if (child_in)
339339
fclose(child_in);
340-
if (finish_command(&cp))
341-
return 1;
342340
if (child_out)
343341
fclose(child_out);
342+
if (finish_command(&cp))
343+
return 1;
344344
return result;
345345
}
346346

0 commit comments

Comments
 (0)