From 7b99db051b2560290a6e1bc123f1b4e760226faa Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 5 May 2010 10:50:38 -0700 Subject: [PATCH] bridge: Fix double-free in sFlow configuration. --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2