mirror of git://sourceware.org/git/glibc.git
(lose): Remove some unnecessary code. The new object is always the last in the list.
This commit is contained in:
parent
50e79604ab
commit
8bbd5f8489
|
|
@ -755,10 +755,14 @@ lose (int code, int fd, const char *name, char *realname, struct link_map *l,
|
||||||
if (l != NULL)
|
if (l != NULL)
|
||||||
{
|
{
|
||||||
/* Remove the stillborn object from the list and free it. */
|
/* Remove the stillborn object from the list and free it. */
|
||||||
if (l->l_prev)
|
assert (l->l_next == NULL);
|
||||||
l->l_prev->l_next = l->l_next;
|
#ifndef SHARED
|
||||||
if (l->l_next)
|
if (l->l_prev == NULL)
|
||||||
l->l_next->l_prev = l->l_prev;
|
/* No other module loaded. */
|
||||||
|
_dl_loaded = NULL;
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
l->l_prev->l_next = NULL;
|
||||||
--_dl_nloaded;
|
--_dl_nloaded;
|
||||||
free (l);
|
free (l);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue