Page MenuHomeFreeBSD

rtld.c: avoid double-free on dso load failure in do_load_object()
ClosedPublic

Authored by kib on Tue, Oct 6, 8:27 AM.
Tags
None
Referenced Files
F174902216: D60402.id188883.diff
Tue, Oct 6, 9:05 PM
F174895918: D60402.id188851.diff
Tue, Oct 6, 8:10 PM
F174879959: D60402.id188883.diff
Tue, Oct 6, 5:55 PM
F174879139: D60402.diff
Tue, Oct 6, 5:48 PM
F174843120: D60402.id188851.diff
Tue, Oct 6, 11:02 AM
F174842993: D60402.diff
Tue, Oct 6, 11:01 AM
Subscribers

Details

Summary
The obj->path is assigned directly from the path argument, and
load_object() frees the path on do_load_object() failure.  Do not free
it in obj_free() on the error path.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable