Fix fd leak.

Reported by:	slonoman2011 yandex ru
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-11-18 09:55:47 +00:00
parent eeb41c230d
commit 953cc85489
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227660

View File

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