Author: kevlo
Date: Tue Dec 14 15:14:08 2010
New Revision: 216432
URL: http://svn.freebsd.org/changeset/base/216432

Log:
  Fix a memory leak on the error condition
  
  Reviewed by:  rpaulo

Modified:
  head/lib/libproc/proc_create.c

Modified: head/lib/libproc/proc_create.c
==============================================================================
--- head/lib/libproc/proc_create.c      Tue Dec 14 15:11:49 2010        
(r216431)
+++ head/lib/libproc/proc_create.c      Tue Dec 14 15:14:08 2010        
(r216432)
@@ -84,7 +84,7 @@ proc_attach(pid_t pid, int flags, struct
        else
                *pphdl = phdl;
 out:
-
+       proc_free(phdl);
        return (error);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to