1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

[BZ #15859] Fix memory leak in _dl_map_object_deps

This commit is contained in:
Vinitha Vijayan
2013-09-21 17:51:58 +02:00
committed by Ondřej Bílka
parent 5bb43a4319
commit f5f4e7b48b
3 changed files with 10 additions and 5 deletions

View File

@ -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 *));