Memory leaks



Hello,

Maybe this time I'll properly report memory leaks :)

---1---
==8620== 96 bytes in 8 blocks are definitely lost in loss record 80 of 108
==8620==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==8620==    by 0x1B954ADF: g_malloc (in /usr/lib/libglib-2.0.so.0.600.6)
==8620==    by 0x80B9A38: ??? (vfs.c:74)
==8620==    by 0x80BA6A1: mc_open (vfs.c:345)
==8620==    by 0x806A9A5: copy_file_file (file.c:624)
==8620==    by 0x806CE77: panel_operate (file.c:1992)
==8620==    by 0x805F6C9: copy_cmd (cmd.c:312)
==8620==    by 0x8098185: ??? (widget.c:2473)
==8620==    by 0x80657A8: dlg_process_event (dialog.c:606)
==8620==    by 0x8065B90: run_dlg (dialog.c:777)
==8620==    by 0x807C611: main (main.c:1692)
-------

---2---
==8620== 12 bytes in 1 blocks are definitely lost in loss record 46 of 108
==8620==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==8620==    by 0x1BB162A8: re_search_stub (in /lib/libc-2.3.5.so)
==8620==    by 0x1BB16558: re_match (in /lib/libc-2.3.5.so)
==8620==    by 0x8069ED3: ??? (file.c:178)
==8620==    by 0x806CD1D: panel_operate (file.c:1975)
==8620==    by 0x805F6C9: copy_cmd (cmd.c:312)
==8620==    by 0x8098185: ??? (widget.c:2473)
==8620==    by 0x80657A8: dlg_process_event (dialog.c:606)
==8620==    by 0x8065B90: run_dlg (dialog.c:777)
==8620==    by 0x807C611: main (main.c:1692)
-------

mc-4.6.1a-0.12.FC4 (source can be downloaded form http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/mc-4.6.1a-0.12.FC4.src.rpm)

This time I don't know what is wrong with code, maybe there aren't any bugs or I just don't know how to find them :)

If you don't want to download source I could replace '???' by function name, but IMHO I could do something wrong (I don't know valgrind so good)?.
--
Marcin Garski



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]