vswitchd: Fix memory leak.
authorBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 23:29:58 +0000 (15:29 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 23:29:58 +0000 (15:29 -0800)
vswitchd/flowtrack.c

index 536e84831acf1828f4f99e5e642fcaf8641a9578..cda6e9588e65d754f5c75db062daed52c2186e0c 100644 (file)
@@ -152,6 +152,7 @@ ft_destroy(struct ft *ft)
         HMAP_FOR_EACH_SAFE (f, next, struct ft_flow, node, &ft->flows) {
             ftf_destroy(f);
         }
+        hmap_destroy(&f->flows);
         free(ft);
     }
 }