From a1372e06a04bad29e8c3c79d95497a8e381f823f Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 1 Dec 2015 15:55:08 +0100 Subject: 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 --- tests/test-flag-nobits.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test-flag-nobits.c') 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; } -- cgit v1.2.1