mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 07:15:17 +00:00
db-ctl-base: Fix resource deallocation on error path in cmd_find().
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:
committed by
Ben Pfaff
parent
93e6bda51a
commit
d4f720a060
@@ -1285,6 +1285,7 @@ cmd_find(struct ctl_context *ctx)
|
|||||||
ctx->error = check_condition(table, row, ctx->argv[i],
|
ctx->error = check_condition(table, row, ctx->argv[i],
|
||||||
ctx->symtab, &satisfied);
|
ctx->symtab, &satisfied);
|
||||||
if (ctx->error) {
|
if (ctx->error) {
|
||||||
|
free(columns);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!satisfied) {
|
if (!satisfied) {
|
||||||
|
Reference in New Issue
Block a user