Memory leak problem.
Brought to you by:
aeb,
bencollins
From: 李 英瑋 <cha...@ho...> - 2013-08-22 10:44:45
|
Hi all, I use raw1394 to transmit my data through Address Range Mapping. The raw1394 work, but a memory leak problem will happen when program call raw1394 function. The following result is that I use valgrind to check this problem. ...19572 bytes in 1 blocks are still reachable in loss record 32 of 36at 0x4029F6F : malloc (vg_replace_malloc.c : 270)by 0x405C250: fw_new_handle (in usr/lib/libraw1394.so.11.0.1)by 0x40595AC : raw1394_new_handle (in usr/lib/libraw1394.so.11.0.1)by 0x805A0F2 : main (main.cpp : 121)...3067120 (3066560 direct, 560 indirect) bytes in 10952 blocks are definitely lost in loss record 36 of 36at 0x4029F6F : malloc ()by 0x405B1B5 : ??? (in usr/lib/libraw1394.so.11.0.1)by 0x405B492 : ??? (in usr/lib/libraw1394.so.11.0.1)by 0x405BF24 : fw_loop_iterate (in usr/lib/libraw1394.so.11.0.1)by 0x405C197 : ??? (in usr/lib/libraw1394.so.11.0.1)by 0x405D6F8 : fw_write (in usr/lib/libraw1394.so.11.0.1)by 0x405A292 : raw1394_write (in usr/lib/libraw1394.so.11.0.1)by 0x805A0F2 : main (main.cpp:121) I've try libraw1394-2.0.7 and libraw1394-2.1.0. $lsmodModule Size Used byfirewire_ohci 39592 0 firewire_core 55074 1 firewire_ohcicrc_itu_t 12523 1 firewire_core $lspci ...FireWire (IEEE 1394) : VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 46) Please help me. Best Regards, Cewd |