From: Ben Pfaff Date: Fri, 8 Apr 2011 20:19:56 +0000 (-0700) Subject: mac-learning: Avoid unnecessary call to free(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2e7a5d54779ac8ee880fdef612c6eaa9ce5667;p=openvswitch mac-learning: Avoid unnecessary call to free(). --- diff --git a/lib/mac-learning.c b/lib/mac-learning.c index 981578d8..f9f4db3d 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