svn commit: r208662 - projects/capabilities8/lib/libcapsicum
Robert Watson
rwatson at FreeBSD.org
Sun May 30 22:59:05 UTC 2010
Author: rwatson
Date: Sun May 30 22:59:05 2010
New Revision: 208662
URL: http://svn.freebsd.org/changeset/base/208662
Log:
Merge c174337 from the p4 TrustedBSD Capabilities branch to capabilities8:
Add missing free() call to lch_stop().
Spotted by: kris
Sponsored by: Google, Inc.
Modified:
projects/capabilities8/lib/libcapsicum/libcapsicum_host.c
Modified: projects/capabilities8/lib/libcapsicum/libcapsicum_host.c
==============================================================================
--- projects/capabilities8/lib/libcapsicum/libcapsicum_host.c Sun May 30 22:53:48 2010 (r208661)
+++ projects/capabilities8/lib/libcapsicum/libcapsicum_host.c Sun May 30 22:59:05 2010 (r208662)
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#16 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#17 $
*/
#include <sys/param.h>
@@ -367,6 +367,7 @@ lch_stop(struct lc_sandbox *lcsp)
lcsp->lcs_fd_sock = -1;
lcsp->lcs_fd_procdesc = -1;
lcsp->lcs_pid = -1;
+ free(lcsp);
}
int
More information about the svn-src-projects
mailing list