mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
db-ctl-base: Fix resource deallocation on error path in cmd_get().
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
dd712844a5
commit
02c56d5532
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user