[Gnucash-changes] Fix errornerous double-free at OFX import.
Christian Stimming
cstim at cvs.gnucash.org
Sat Oct 8 05:18:40 EDT 2005
Log Message:
-----------
Fix errornerous double-free at OFX import.
2005-10-08 Christian Stimming <stimming at tuhh.de>
* src/import-export/ofx/gnc-ofx-import.c: Fix errornerous
double-free at OFX import.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/import-export/ofx:
gnc-ofx-import.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.315
retrieving revision 1.1487.2.316
diff -LChangeLog -LChangeLog -u -r1.1487.2.315 -r1.1487.2.316
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2005-10-08 Christian Stimming <stimming at tuhh.de>
+
+ * src/import-export/ofx/gnc-ofx-import.c: Fix errornerous
+ double-free at OFX import.
+
2005-10-07 Joshua Sled <jsled at asynchronous.org>
* src/register/register-gnome/gnucash-item-list.c
Index: gnc-ofx-import.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/ofx/gnc-ofx-import.c,v
retrieving revision 1.28.4.10
retrieving revision 1.28.4.11
diff -Lsrc/import-export/ofx/gnc-ofx-import.c -Lsrc/import-export/ofx/gnc-ofx-import.c -u -r1.28.4.10 -r1.28.4.11
--- src/import-export/ofx/gnc-ofx-import.c
+++ src/import-export/ofx/gnc-ofx-import.c
@@ -359,6 +359,7 @@
NULL,
NULL);
g_free (investment_account_text);
+ investment_account_text = NULL;
if(investment_account!=NULL&&
data.unitprice_valid==true&&
data.units_valid==true&&
@@ -626,6 +627,7 @@
NULL,
default_dir);
g_free(default_dir);
+ default_dir = NULL;
if(selected_filename!=NULL)
{
@@ -633,6 +635,7 @@
gnc_extract_directory(&default_dir, selected_filename);
gnc_gconf_set_string(GCONF_SECTION, KEY_LAST_PATH, default_dir, NULL);
g_free(default_dir);
+ default_dir = NULL;
/*strncpy(file,selected_filename, 255);*/
DEBUG("Filename found: %s",selected_filename);
More information about the gnucash-changes
mailing list