r16985 - gnucash/branches/2.2/src/backend/file - [r16852] Correctly close file descriptors in gz_thread_func.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Mar 1 09:49:49 EST 2008


Author: andi5
Date: 2008-03-01 09:49:48 -0500 (Sat, 01 Mar 2008)
New Revision: 16985
Trac: http://svn.gnucash.org/trac/changeset/16985

Modified:
   gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c
Log:
[r16852] Correctly close file descriptors in gz_thread_func.

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

Approved by andrewsw.


Modified: gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c
===================================================================
--- gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c	2008-03-01 14:49:37 UTC (rev 16984)
+++ gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c	2008-03-01 14:49:48 UTC (rev 16985)
@@ -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