AUDIT: r16852 - gnucash/trunk/src/backend/file - Correctly close file descriptors in gz_thread_func.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Jan 12 12:13:21 EST 2008


Author: andi5
Date: 2008-01-12 12:13:20 -0500 (Sat, 12 Jan 2008)
New Revision: 16852
Trac: http://svn.gnucash.org/trac/changeset/16852

Modified:
   gnucash/trunk/src/backend/file/io-gncxml-v2.c
Log:
Correctly close file descriptors in gz_thread_func.

This is needed to load compressed xml data files without a specified
encoding.
BP


Modified: gnucash/trunk/src/backend/file/io-gncxml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/io-gncxml-v2.c	2008-01-10 19:01:03 UTC (rev 16851)
+++ gnucash/trunk/src/backend/file/io-gncxml-v2.c	2008-01-12 17:13:20 UTC (rev 16852)
@@ -1289,6 +1289,7 @@
     success = 1;
 
 cleanup_gz_thread_func:
+    close(params->fd);
     g_free(params->filename);
     g_free(params->perms);
     g_free(params);



More information about the gnucash-changes mailing list