PERFORCE change 174214 for review
Robert Watson
rwatson at FreeBSD.org
Wed Feb 3 10:13:25 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=174214
Change 174214 by rwatson at rwatson_vimage_client on 2010/02/03 10:12:43
Add missing free of string and explicit NULL return on error.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#37 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#37 (text+ko) ====
@@ -1661,6 +1661,8 @@
path = xstrdup(name);
if ((fd = find_library_fd(path)) < 0) {
_rtld_error("Unable to find \"%s\" in LD_LIBRARY_DIRS", path);
+ free(path);
+ return NULL;
}
#else
path = find_library(name, refobj);
More information about the p4-projects
mailing list