r21196 - gnucash/trunk/src/app-utils - (cppcheck) Fix "error: Mismatching allocation and deallocation: symbol"
Christian Stimming
cstim at code.gnucash.org
Sun Aug 21 15:41:49 EDT 2011
Author: cstim
Date: 2011-08-21 15:41:49 -0400 (Sun, 21 Aug 2011)
New Revision: 21196
Trac: http://svn.gnucash.org/trac/changeset/21196
Modified:
gnucash/trunk/src/app-utils/option-util.c
Log:
(cppcheck) Fix "error: Mismatching allocation and deallocation: symbol"
Patch by Aurimas Fišeras.
Modified: gnucash/trunk/src/app-utils/option-util.c
===================================================================
--- gnucash/trunk/src/app-utils/option-util.c 2011-08-20 13:29:03 UTC (rev 21195)
+++ gnucash/trunk/src/app-utils/option-util.c 2011-08-21 19:41:49 UTC (rev 21196)
@@ -2230,8 +2230,7 @@
*set_rel_value = g_strdup(SCM_SYMBOL_CHARS (relative));
}
- if (symbol)
- free (symbol);
+ g_free (symbol);
}
}
}
More information about the gnucash-changes
mailing list