If dpif is closed without deleting it, dpif-provider resources are
not freed.

Signed-off-by: Pravin B Shelar <[email protected]>
---
 ofproto/ofproto-dpif.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 91ffe23..1d60359 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -770,6 +770,7 @@ close_dpif_backer(struct dpif_backer *backer)
     hmap_destroy(&backer->odp_to_ofport_map);
     shash_find_and_delete(&all_dpif_backers, backer->type);
     free(backer->type);
+    dpif_delete(backer->dpif);
     dpif_close(backer->dpif);
 
     free(backer);
-- 
1.7.1

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to