[ovs-dev] [next 05/35] mac-learning: Avoid unnecessary call to free().

Ben Pfaff blp at nicira.com
Tue Apr 26 16:24:31 UTC 2011


---
 lib/mac-learning.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/mac-learning.c b/lib/mac-learning.c
index 981578d..f9f4db3 100644
--- a/lib/mac-learning.c
+++ b/lib/mac-learning.c
@@ -134,8 +134,8 @@ mac_learning_destroy(struct mac_learning *ml)
 {
     if (ml) {
         bitmap_free(ml->flood_vlans);
+        free(ml);
     }
-    free(ml);
 }
 
 /* Provides a bitmap of VLANs which have learning disabled, that is, VLANs on
-- 
1.7.4.4




More information about the dev mailing list