vswitch: Fix memory leak in error path.
authorBen Pfaff <blp@nicira.com>
Mon, 9 Mar 2009 20:12:54 +0000 (13:12 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 9 Mar 2009 20:13:30 +0000 (13:13 -0700)
vswitchd/bridge.c

index bc4ebb0205bce1fa34f06ad1efa833960d1e61ba..d40d6594f2adeb2a6ed11affb135115155012253 100644 (file)
@@ -624,6 +624,7 @@ bridge_create(const char *name)
                  name, strerror(error));
         dpif_delete(&br->dpif);
         dpif_close(&br->dpif);
+        free(br);
         return NULL;
     }