hmapx: New data structure.
[openvswitch] / lib / mac-learning.c
index 981578d8aa688ae9a547b9c3bc3729dd07cf3423..f9f4db3d4bfbd2e9a2846c5d5a4861a70ebf6496 100644 (file)
@@ -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