[PATCH] findtextrel: Don't leak memory in process_file.

Mark Wielaard mjw at redhat.com
Fri Jun 19 11:11:53 UTC 2015


On Thu, 2015-06-18 at 23:47 +0200, Mark Wielaard wrote:
> When a files do contain textrels we fail to release the segments searched
> and valgrind will show:
> 
>  2,560 bytes in 16 blocks are definitely lost in loss record 1 of 1
>     at 0x40281B5: malloc (in vgpreload_memcheck-x86-linux.so)
>     by 0x804AE63: process_file (findtextrel.c:322)
>     by 0x804909B: main (findtextrel.c:149)

Pushed to master.


More information about the elfutils-devel mailing list