bridge: Avoid double-free of bond fake ifaces.
authorBen Pfaff <blp@nicira.com>
Mon, 16 May 2011 20:03:49 +0000 (13:03 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 16 May 2011 20:03:49 +0000 (13:03 -0700)
Found by valgrind.

vswitchd/bridge.c

index f0ff91d92ee736b33608584f99a09e367a4a2e14..ff2745ef1c499bcd18b8132568d4a914aa32eed2 100644 (file)
@@ -927,7 +927,6 @@ bridge_add_ofproto_ports(struct bridge *br)
                 /* Already exists, nothing to do. */
                 ofproto_port_destroy(&ofproto_port);
             }
-            ofproto_port_destroy(&ofproto_port);
         }
     }
 }