summaryrefslogtreecommitdiffstats
path: root/tests/ecp.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-12-08 01:35:42 +0000
committerRoland McGrath <[email protected]>2005-12-08 01:35:42 +0000
commitd804e72cf0b39827289d2d08a74fa12e0d8a39b9 (patch)
tree5906ca97604d4424fc3e99d9f5fd23871e37fd7e /tests/ecp.c
parent55984a8685c08e3158d5b9432878abf8dcc7ddf9 (diff)
2005-12-07 Roland McGrath <[email protected]>
* ecp.c (main): Use elf_end to clean up.
Diffstat (limited to 'tests/ecp.c')
-rw-r--r--tests/ecp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ecp.c b/tests/ecp.c
index 15bc71cc..7bae3af4 100644
--- a/tests/ecp.c
+++ b/tests/ecp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Red Hat, Inc.
+/* Copyright (C) 2002, 2005 Red Hat, Inc.
Written by Ulrich Drepper <[email protected]>, 2002.
This program is Open Source software; you can redistribute it and/or
@@ -82,7 +82,10 @@ main (int argc, char *argv[])
if (elf_update (outelf, ELF_C_WRITE) == -1)
error (EXIT_FAILURE, 0, "elf_update failed: %s", elf_errmsg (-1));
+ elf_end (outelf);
close (outfd);
+ elf_end (inelf);
+
return 0;
}