From: Ben Pfaff Date: Fri, 19 Aug 2016 15:47:48 +0000 (-0700) Subject: ovn-controller: Fix memory leak of removed_lports sset in binding_run(). X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=08e53919b8827e995bcdfba0005a12e129ccc29b;p=ovs.git ovn-controller: Fix memory leak of removed_lports sset in binding_run(). Fixes: c5f346a55f2e ("ovn-controller: Restore ct zone assignment.") Reported-by: Ramu Ramamurthy CC: Babu Shanmugam Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- diff --git a/ovn/controller/binding.c b/ovn/controller/binding.c index 9c289418b..c26007dc7 100644 --- a/ovn/controller/binding.c +++ b/ovn/controller/binding.c @@ -321,6 +321,7 @@ binding_run(struct controller_ctx *ctx, const struct ovsrec_bridge *br_int, SSET_FOR_EACH(cur_id, &removed_lports) { sset_find_and_delete(all_lports, cur_id); } + sset_destroy(&removed_lports); process_full_binding = false; } else {