Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2003 14:24:53 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 41936 for review
Message-ID:  <200311102224.hAAMOrWJ066143@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=41936

Change 41936 by rwatson@rwatson_tislabs on 2003/11/10 14:24:07

	Insert missing calls to mac_labelzone_free(), and NULL'ing of
	pointers for safety purposes.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac/mac_net.c#9 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac/mac_net.c#9 (text+ko) ====

@@ -281,6 +281,7 @@
 {
 
 	MAC_PERFORM(destroy_bpfdesc_label, label);
+	mac_labelzone_free(label);
 	MAC_DEBUG_COUNTER_DEC(&nmacbpfdescs);
 }
 
@@ -297,6 +298,7 @@
 {
 
 	MAC_PERFORM(destroy_ifnet_label, label);
+	mac_labelzone_free(label);
 	MAC_DEBUG_COUNTER_DEC(&nmacifnets);
 }
 
@@ -313,6 +315,7 @@
 {
 
 	MAC_PERFORM(destroy_ipq_label, label);
+	mac_labelzone_free(label);
 	MAC_DEBUG_COUNTER_DEC(&nmacipqs);
 }
 
@@ -321,6 +324,7 @@
 {
 
 	mac_ipq_label_free(ipq->ipq_label);
+	ipq->ipq_label = NULL;
 }
 
 void
@@ -340,6 +344,7 @@
 {
 
 	MAC_PERFORM(destroy_socket_label, label);
+	mac_labelzone_free(label);
 	MAC_DEBUG_COUNTER_DEC(&nmacsockets);
 }
 
@@ -348,6 +353,7 @@
 {
 
 	MAC_PERFORM(destroy_socket_peer_label, label);
+	mac_labelzone_free(label);
 	MAC_DEBUG_COUNTER_DEC(&nmacsockets);
 }
 


help

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