Fix fd leak.
Reported by: slonoman2011 yandex ru MFC after: 1 week
This commit is contained in:
parent
ed098cf420
commit
e9eec31614
@ -1657,6 +1657,7 @@ load_object(const char *name, const Obj_Entry *refobj, int flags)
|
||||
}
|
||||
if (flags & RTLD_LO_NOLOAD) {
|
||||
free(path);
|
||||
close(fd);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user