From: Ben Pfaff Date: Wed, 5 May 2010 17:50:38 +0000 (-0700) Subject: bridge: Fix double-free in sFlow configuration. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b99db051b2560290a6e1bc123f1b4e760226faa;p=openvswitch bridge: Fix double-free in sFlow configuration. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index c883cf54..35267a6c 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -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); }