Release resources now that we are returning to the caller on error.

Signed-off-by: Jakub Sitnicki <[email protected]>
---
 lib/db-ctl-base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/db-ctl-base.c b/lib/db-ctl-base.c
index 2fff7127b..8d4799433 100644
--- a/lib/db-ctl-base.c
+++ b/lib/db-ctl-base.c
@@ -977,6 +977,7 @@ cmd_get(struct ctl_context *ctx)
             ctx->error = ovsdb_atom_from_string(&key, NULL, &column->type.key,
                                                 key_string, ctx->symtab);
             if (ctx->error) {
+                free(key_string);
                 return;
             }
 
-- 
2.14.4

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to