vswitchd: Fix memory leak in bridge_reconfigure().
authorBen Pfaff <blp@nicira.com>
Mon, 21 Sep 2009 20:06:47 +0000 (13:06 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 21 Sep 2009 23:10:44 +0000 (16:10 -0700)
Bug #1817.

vswitchd/bridge.c

index fffc2951e3f851e973890a95d8994c12a2dde537..b525f3d6d117029af825c97097bda2f37adee312 100644 (file)
@@ -578,6 +578,7 @@ bridge_reconfigure(void)
             VLOG_ERR("bridge %s: problem setting netflow collectors", 
                     br->name);
         }
+        svec_destroy(&nf_hosts);
 
         /* Update the controller and related settings.  It would be more
          * straightforward to call this from bridge_reconfigure_one(), but we