From a9f4baa6d0f0210cbd40500b968173e63380665e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Feb 2010 14:35:24 -0800 Subject: [PATCH] ovs-brcompatd: Fix dangling reference in del_port(). Until now, del_port() was deleting Interface records without deleting the Port record that referred to them. OVSDB rejected that because it would have caused a dangling reference from the Port to the Interfaces. This commit fixes the problem. Bug #2425. --- vswitchd/ovs-brcompatd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index faf1bee3..d0568a48 100644 --- a/vswitchd/ovs-brcompatd.c +++ b/vswitchd/ovs-brcompatd.c @@ -479,6 +479,8 @@ del_port(const struct ovsrec_bridge *br, const char *port_name) } ovsrec_bridge_set_ports(br, ports, n); free(ports); + + ovsrec_port_delete(port_rec); } } -- 2.30.2