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 8d4799433..5f386cab5 100644
--- a/lib/db-ctl-base.c
+++ b/lib/db-ctl-base.c
@@ -1185,6 +1185,7 @@ cmd_list(struct ctl_context *ctx)
ctx->error = ctl_get_row(ctx, table, ctx->argv[i], must_exist,
&row);
if (ctx->error) {
+ free(columns);
return;
}
list_record(row, columns, n_columns, out);
--
2.14.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev