This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] findtextrel: Don't leak memory in process_file.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 19 Jun 2015 13:11:53 +0200
- Subject: Re: [PATCH] findtextrel: Don't leak memory in process_file.
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.