From: Ben Pfaff Date: Tue, 23 Feb 2010 22:35:24 +0000 (-0800) Subject: ovs-brcompatd: Fix dangling reference in del_port(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f4baa6d0f0210cbd40500b968173e63380665e;p=openvswitch 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. --- 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); } }