ofproto-dpif: Fix another memory leak in type_run().
[sliver-openvswitch.git] / ofproto / ofproto-dpif.c
index b78d6cf..6ce9a07 100644 (file)
@@ -836,7 +836,7 @@ type_run(const char *type)
 
         /* Don't report on the datapath's device. */
         if (!strcmp(devname, dpif_base_name(backer->dpif))) {
-            continue;
+            goto next;
         }
 
         ofproto = lookup_ofproto_dpif_by_port_name(devname);
@@ -857,6 +857,7 @@ type_run(const char *type)
         }
         dpif_port_destroy(&port);
 
+    next:
         free(devname);
     }