[XForms] [patch]: squash valgrind warning about possible memory leak.

Angus Leeming angus.leeming at btopenworld.com
Sun May 2 06:01:21 EDT 2004


Jean-Marc, all

It seems that the attached patch is needed to make valgrind happy.
It looks sensible to me, but I'd value a sanity check.

Angus

==8727== 13 bytes in 1 blocks are possibly lost in loss record 11 of 144
==8727==    at 0x32728B: malloc (vg_replace_malloc.c:153)
==8727==    by 0x2A0EEE: fl_strdup (strdup.c:44)
==8727==    by 0x284F35: get_command_name (flresource.c:693)
==8727==    by 0x2850F3: fl_initialize (flresource.c:800)
==8727==    by 0x81F17EB: lyx_gui::parse_init(int&, char**) (lyx_gui.C:162)
==8727==    by 0x80D9269: LyX::priv_exec(int&, char**) (lyx_main.C:190)
==8727==    by 0x80D8F7D: LyX::exec(int&, char**) (scoped_ptr.hpp:94)
==8727==    by 0x805408D: main (main.C:42)
==8727==    by 0x6C4BBE: __libc_start_main (in /lib/libc-2.3.2.so)
==8727==    by 0x8053FB4: (within /home/angus/lyx/devel/build/src/lyx-xforms)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flresource.diff
Type: text/x-diff
Size: 1153 bytes
Desc: not available
Url : attachments/20040502/f970b5ff/attachment-0010.bin 


More information about the Xforms mailing list