Mpipe fix

Craig Dooley craig at xlnx-x.net
Tue Apr 20 05:42:44 PDT 2004


When an mpipe was being destroyed, each element in the array was being
freed, but the array itself was not, so I added the free statement.

-Craig
-- 
------------------------------------------------------------------------
Craig Dooley                                            craig at xxxxxxxxxx
------------------------------------------------------------------------
Index: kern/kern_mpipe.c
===================================================================
RCS file: /home/dcvs/src/sys/kern/kern_mpipe.c,v
retrieving revision 1.5
diff -u -r1.5 kern_mpipe.c
--- kern/kern_mpipe.c	29 Mar 2004 16:22:21 -0000	1.5
+++ kern/kern_mpipe.c	20 Apr 2004 03:34:52 -0000
@@ -98,6 +98,7 @@
 	    mpipe->deconstruct(mpipe, buf);
 	free(buf, mpipe->type);
     }
+	free(mpipe->array, M_MPIPEARY);
 }
 
 /*
Attachment:
pgp00011.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00011.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20040420/24ba206e/attachment-0016.obj>


More information about the Submit mailing list