r20364 - gnucash/trunk/src/app-utils - Correct memory leak found with valgrind

J. Alex Aycinena alex.aycinena at code.gnucash.org
Wed Mar 2 19:30:11 EST 2011


Author: alex.aycinena
Date: 2011-03-02 19:30:10 -0500 (Wed, 02 Mar 2011)
New Revision: 20364
Trac: http://svn.gnucash.org/trac/changeset/20364

Modified:
   gnucash/trunk/src/app-utils/gnc-ui-util.c
Log:
Correct memory leak found with valgrind

Modified: gnucash/trunk/src/app-utils/gnc-ui-util.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-ui-util.c	2011-03-02 19:33:25 UTC (rev 20363)
+++ gnucash/trunk/src/app-utils/gnc-ui-util.c	2011-03-03 00:30:10 UTC (rev 20364)
@@ -666,6 +666,8 @@
             if (xaccAccountGetTaxRelated (descendant->data))
                 sub_acct_tax_number++;
         }
+        g_list_free (account_descendants);
+        g_list_free (descendant);
         /* Translators: This and the following strings appear on
          * the account tab if the Tax Info column is displayed,
          * i.e. if the user wants to record the tax form number



More information about the gnucash-changes mailing list