2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

db-ctl-base: Fix resource deallocation on error path in cmd_list().

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

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Jakub Sitnicki
2018-07-02 12:50:13 +02:00
committed by Ben Pfaff
parent 02c56d5532
commit 93e6bda51a

View File

@@ -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);