Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2010 10:13:25 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 174214 for review
Message-ID:  <201002031013.o13ADPHI030619@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174214

Change 174214 by rwatson@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002031013.o13ADPHI030619>