vswitchd: Fix unimportant memory leak.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Sep 2009 21:46:18 +0000 (14:46 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Sep 2009 21:46:18 +0000 (14:46 -0700)
Free dpif_names when we're done with it.

This memory leak is not a big deal since bridge_init() is only ever called
once in a given ovs-vswitchd execution.

vswitchd/bridge.c

index 6b7502b..ac993bf 100644 (file)
@@ -312,6 +312,7 @@ bridge_init(void)
             dpif_close(dpif);
         }
     }
+    svec_destroy(&dpif_names);
 
     unixctl_command_register("bridge/dump-flows", bridge_unixctl_dump_flows);