[LIBXC] Do not gzclose() after close() on a gzdopen()'ed fd.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-08-08 09:57:24 +01:00
1 parent 74d7945b4d
commit dfcd4f6e10
1 file changed
+3 -3
+3 -3
View File
@@ -1373,10 +1373,10 @@ int xc_linux_build(int xc_handle,
error_out:
free(image);
if ( fd >= 0 )
close(fd);
if ( initrd_info.u.file_handle )
if ( initrd_info.type == INITRD_file && initrd_info.u.file_handle )
gzclose(initrd_info.u.file_handle);
else if ( fd >= 0 )
close(fd);
return sts;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.