bridge: Fix double-free in sFlow configuration.
authorBen Pfaff <blp@nicira.com>
Wed, 5 May 2010 17:50:38 +0000 (10:50 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 May 2010 17:50:38 +0000 (10:50 -0700)
vswitchd/bridge.c

index c883cf54b77e28f03f5523418ec71b00a64c4d46..35267a6c2adea3dd3282c714b27100c1194b3c15 100644 (file)
@@ -823,7 +823,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg)
             }
             ofproto_set_sflow(br->ofproto, &oso);
 
-            svec_destroy(&oso.targets);
+            /* Do not destroy oso.targets because it is owned by sflow_cfg. */
         } else {
             ofproto_set_sflow(br->ofproto, NULL);
         }