diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 24b3359..7d7008d 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -888,6 +888,8 @@ lose (int code, int fd, const char *name, char *realname, struct link_map *l, /* The file might already be closed. */ if (fd != -1) (void) __close (fd); + if (l->l_origin != (char *) -1l) + free (l->l_origin); free (l); free (realname); |