summaryrefslogtreecommitdiff
path: root/tests/dwarf-getstring.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-12-01 15:55:08 +0100
committerMark Wielaard <mjw@redhat.com>2016-01-02 20:37:44 +0100
commita1372e06a04bad29e8c3c79d95497a8e381f823f (patch)
treeb03cad8fba9772ba5f3524fcf40e3829b6c7c1af /tests/dwarf-getstring.c
parentdb30f8b21993c09339c5bced7b0827eedf8d4fef (diff)
downloadelfutils-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.c1
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);
}