diff options
| author | Mark Wielaard <[email protected]> | 2015-12-01 15:55:08 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-01-02 20:37:44 +0100 |
| commit | a1372e06a04bad29e8c3c79d95497a8e381f823f (patch) | |
| tree | b03cad8fba9772ba5f3524fcf40e3829b6c7c1af /tests/addrscopes.c | |
| parent | db30f8b21993c09339c5bced7b0827eedf8d4fef (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.c | 1 |
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); } } |
