Fix two memory leaks in findtextrel and strip.
authorMark Wielaard <mjw@redhat.com>
Fri, 1 Mar 2013 10:51:58 +0000 (11:51 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 1 Mar 2013 10:51:58 +0000 (11:51 +0100)
commita58951b183fb3e051870b19c95d8082a3efa3ddb
tree1c8f194f4f00e63d8abdb4306e40ce84e37a19b4
parentb94cceae503b56fb360cd597f154fa2b33552887
Fix two memory leaks in findtextrel and strip.

The findtextrel leak is real, when processing lots of files without text
relocations the files and memory wouldn't be released. The strip leak is
minor since it can only happen when using -f which only allows one file
as argument. But it is nice to see valgrind say:

  "All heap blocks were freed -- no leaks are possible".

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/findtextrel.c
src/strip.c