[ovs-dev] [PATCH ovn] ovn-northd-ddlog: Fix minor memory leak.

Ben Pfaff blp at ovn.org
Wed Mar 10 00:36:22 UTC 2021


This string is allocated in northd_ctx_create() but until now it was
not freed.

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

diff --git a/northd/ovn-northd-ddlog.c b/northd/ovn-northd-ddlog.c
index 4efdfa38749a..c98bded71b5f 100644
--- a/northd/ovn-northd-ddlog.c
+++ b/northd/ovn-northd-ddlog.c
@@ -200,6 +200,7 @@ northd_ctx_destroy(struct northd_ctx *ctx)
     if (ctx) {
         ovsdb_cs_destroy(ctx->cs);
         json_destroy(ctx->output_only_data);
+        free(ctx->prefix);
         free(ctx);
     }
 }
-- 
2.29.2



More information about the dev mailing list