PERFORCE change 41936 for review

Robert Watson rwatson at FreeBSD.org
Mon Nov 10 14:24:55 PST 2003


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

Change 41936 by rwatson at 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);
 }
 


More information about the p4-projects mailing list