From: Ben Pfaff Date: Tue, 13 Jan 2009 23:29:58 +0000 (-0800) Subject: vswitchd: Fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bc09edb321977ef8b0ce2c386fa5201cd93c590;p=openvswitch vswitchd: Fix memory leak. --- diff --git a/vswitchd/flowtrack.c b/vswitchd/flowtrack.c index 536e8483..cda6e958 100644 --- a/vswitchd/flowtrack.c +++ b/vswitchd/flowtrack.c @@ -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); } }