From 43051d2742bbe5911de73322064cb573b6aff975 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Thu, 12 May 2016 09:47:18 -0700 Subject: 6955 libproc should be documented and shipped 6956 libproc cannot leave free() to callers Reviewed by: Ryan Zezeski Reviewed by: Cody Mello Reviewed by: Joshua M. Clulow Approved by: Richard Lowe --- usr/src/lib/libproc/common/Pcontrol.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr/src/lib/libproc/common/Pcontrol.c') diff --git a/usr/src/lib/libproc/common/Pcontrol.c b/usr/src/lib/libproc/common/Pcontrol.c index 751c0c3f8a..3b6ef35709 100644 --- a/usr/src/lib/libproc/common/Pcontrol.c +++ b/usr/src/lib/libproc/common/Pcontrol.c @@ -26,6 +26,7 @@ * Portions Copyright 2007 Chad Mynhier * Copyright 2012 DEY Storage Systems, Inc. All rights reserved. * Copyright (c) 2013 by Delphix. All rights reserved. + * Copyright 2015, Joyent, Inc. */ #include @@ -1320,6 +1321,13 @@ Pldt(struct ps_prochandle *P, struct ssd *pldt, int nldt) } #endif /* __i386 */ +/* ARGSUSED */ +void +Ppriv_free(struct ps_prochandle *P, prpriv_t *prv) +{ + free(prv); +} + /* * Return a malloced process privilege structure in *pprv. */ -- cgit v1.2.3