diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-12-01 15:55:08 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-01-02 20:37:44 +0100 |
commit | a1372e06a04bad29e8c3c79d95497a8e381f823f (patch) | |
tree | b03cad8fba9772ba5f3524fcf40e3829b6c7c1af /tests/test-flag-nobits.c | |
parent | db30f8b21993c09339c5bced7b0827eedf8d4fef (diff) | |
download | elfutils-a1372e06a04bad29e8c3c79d95497a8e381f823f.tar.gz |
tests: Fix some memory leaks in testcases.
Make sure all structures allocated in the testcases are disposed so
running them under valgrind will show no memory leaks.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/test-flag-nobits.c')
-rw-r--r-- | tests/test-flag-nobits.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-flag-nobits.c b/tests/test-flag-nobits.c index ff19ce20..15d44ea8 100644 --- a/tests/test-flag-nobits.c +++ b/tests/test-flag-nobits.c @@ -36,4 +36,7 @@ main (int argc, char **argv) Elf_Scn *scn = NULL; while ((scn = elf_nextscn (stripped, scn)) != NULL) elf_flagdata (elf_getdata (scn, NULL), ELF_C_SET, ELF_F_DIRTY); + + elf_end (stripped); + return 0; } |