From: Ben Pfaff Date: Mon, 9 Mar 2009 20:12:54 +0000 (-0700) Subject: vswitch: Fix memory leak in error path. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=887102da2819b143fb8721d19483000fa466faf4;p=openvswitch vswitch: Fix memory leak in error path. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index bc4ebb02..d40d6594 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -624,6 +624,7 @@ bridge_create(const char *name) name, strerror(error)); dpif_delete(&br->dpif); dpif_close(&br->dpif); + free(br); return NULL; }