r19986 - gnucash/trunk/src/gnome-utils - Fix more memory leaks. scm_to_locale_string() returns a string which must be freed.

Christian Stimming stimming at tuhh.de
Thu Dec 30 06:34:13 EST 2010


Ok, I've already wrapped the free() into a suitable macro and fixed this in 
r19999.

Regards,

Christian

Am Donnerstag, 30. Dezember 2010 schrieb Christian Stimming:
> Dear Phil,
> 
> unfortunately this (r19985..r19988) break the start-up of gnucash here.
> I've got guile-1.6.8, so I suspect you have guile-1.8 and it's a guile
> think here.
> 
> At r19985 I don't have a crash at start-up but instead at shutdown; since
> r19986 I've got the crash at start-up as shown below.
> 
> Regards,
> 
> Christian
> 
> *** glibc detected *** gnucash: double free or corruption (fasttop):
> 0x00000000027b1650 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x775b6)[0x7f6e5852d5b6]
> /lib/libc.so.6(cfree+0x73)[0x7f6e58533e83]
> /home/cs/usr/lib/gnucash/libgncmod-gnome-utils.so(+0x893f3)[0x7f6e593bb3f3]
> /home/cs/usr/lib/gnucash/libgncmod-gnome-utils.so(gnc_add_scm_extension+0x1
> 8) [0x7f6e593bb5dd]
> /home/cs/usr/lib/gnucash/libgncmod-gnome-utils.so(+0xc14d3)[0x7f6e593f34d3]


More information about the gnucash-devel mailing list