summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorVinitha Vijayan <vinitha.vijayann@gmail.com>2013-09-21 17:51:58 +0200
committerOndřej Bílka <neleai@seznam.cz>2013-09-21 19:18:23 +0200
commitf5f4e7b48bcc926e00913aa2ae6da19096864535 (patch)
treea2c4e48cbae7275968f22f80233584727a870445 /elf
parent5bb43a43199e2bc3f729b858d26c47e91fd56621 (diff)
downloadglibc-f5f4e7b48bcc926e00913aa2ae6da19096864535.tar.gz
[BZ #15859] Fix memory leak in _dl_map_object_deps
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-deps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/elf/dl-deps.c b/elf/dl-deps.c
index 1c36f501bc..6652f6d0cd 100644
--- a/elf/dl-deps.c
+++ b/elf/dl-deps.c
@@ -595,7 +595,6 @@ Filters not supported with LD_TRACE_PRELINKING"));
if (list[i]->l_reserved)
{
/* Need to allocate new array of relocation dependencies. */
- struct link_map_reldeps *l_reldeps;
l_reldeps = malloc (sizeof (*l_reldeps)
+ map->l_reldepsmax
* sizeof (struct link_map *));