summaryrefslogtreecommitdiffstats
path: root/tests/addrscopes.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2015-12-01 15:55:08 +0100
committerMark Wielaard <[email protected]>2016-01-02 20:37:44 +0100
commita1372e06a04bad29e8c3c79d95497a8e381f823f (patch)
treeb03cad8fba9772ba5f3524fcf40e3829b6c7c1af /tests/addrscopes.c
parentdb30f8b21993c09339c5bced7b0827eedf8d4fef (diff)
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 <[email protected]>
Diffstat (limited to 'tests/addrscopes.c')
-rw-r--r--tests/addrscopes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/addrscopes.c b/tests/addrscopes.c
index 2285d2ca..791569f5 100644
--- a/tests/addrscopes.c
+++ b/tests/addrscopes.c
@@ -134,6 +134,7 @@ handle_address (GElf_Addr pc, Dwfl *dwfl)
print_vars (indent + INDENT, die);
}
+ free (scopes);
}
}