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/dwarf-getstring.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/dwarf-getstring.c')
-rw-r--r-- | tests/dwarf-getstring.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/dwarf-getstring.c b/tests/dwarf-getstring.c index 824edef8..ffa3e375 100644 --- a/tests/dwarf-getstring.c +++ b/tests/dwarf-getstring.c @@ -70,6 +70,7 @@ main (int argc, char *argv[]) offset += len + 1; } + dwarf_end (dbg); close (fd); } |