[ovs-dev] [PATCH v2 3/3] ovn-northd: Fix memory leak in free_chassis_queueid().

Ben Pfaff blp at ovn.org
Tue Oct 30 22:03:18 UTC 2018


Found by inspection.

Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 ovn/northd/ovn-northd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c
index 6cb0b6cc410a..e42ceea99264 100644
--- a/ovn/northd/ovn-northd.c
+++ b/ovn/northd/ovn-northd.c
@@ -393,6 +393,7 @@ free_chassis_queueid(struct hmap *set, struct sbrec_chassis *chassis,
         if (uuid_equals(chassis_uuid, &node->chassis_uuid)
             && node->queue_id == queue_id) {
             hmap_remove(set, &node->key_node);
+            free(node);
             break;
         }
     }
-- 
2.16.1



More information about the dev mailing list