summaryrefslogtreecommitdiffstats
path: root/src/elfcmp.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2015-12-01 15:02:23 +0100
committerMark Wielaard <[email protected]>2016-01-02 20:37:44 +0100
commit095f53490bcf684a834d835ee8118f1d8ea51698 (patch)
treef05a206457a1b379d208483f71a414f11adecedb /src/elfcmp.c
parent4e249605bb605b9bcc7e86e48d91247abd82ff5e (diff)
elfcmp: Fix leaking Ebl handles.
open_file () explicitly gets Ebl handles for both Elf files to compare. Make sure to close those when done. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/elfcmp.c')
-rw-r--r--src/elfcmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elfcmp.c b/src/elfcmp.c
index 0250fbe3..852b92f5 100644
--- a/src/elfcmp.c
+++ b/src/elfcmp.c
@@ -655,6 +655,8 @@ cannot read note section [%zu] '%s' in '%s': %s"),
out:
elf_end (elf1);
elf_end (elf2);
+ ebl_closebackend (ebl1);
+ ebl_closebackend (ebl2);
close (fd1);
close (fd2);