aboutsummaryrefslogtreecommitdiff
path: root/ltrace-elf.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-26 22:26:54 +0200
committerPetr Machata <pmachata@redhat.com>2012-10-26 22:26:54 +0200
commit588850f2d73fa03d5c4e59b82acb9c4eb1aaf1c0 (patch)
tree53dc848b01279ee2c7ad384e16ba682f6428076a /ltrace-elf.c
parente0e89edff4ff9216a9a8631b078858851a15f0e7 (diff)
downloadltrace-588850f2d73fa03d5c4e59b82acb9c4eb1aaf1c0.tar.gz
Publish do_close_elf; call it on the ELF used to check arch support
This plugs a leak.
Diffstat (limited to 'ltrace-elf.c')
-rw-r--r--ltrace-elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 89ddc3a..020159c 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -479,9 +479,9 @@ do_init_elf(struct ltelf *lte, const char *filename)
return 0;
}
-/* XXX temporarily non-static */
void
-do_close_elf(struct ltelf *lte) {
+do_close_elf(struct ltelf *lte)
+{
debug(DEBUG_FUNCTION, "do_close_elf()");
arch_elf_destroy(lte);
elf_end(lte->elf);