2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-02 15:25:22 +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:
Jakub Sitnicki
2018-07-02 12:50:12 +02:00
committed by Ben Pfaff
parent dd712844a5
commit 02c56d5532

View File

@@ -977,6 +977,7 @@ cmd_get(struct ctl_context *ctx)
ctx->error = ovsdb_atom_from_string(&key, NULL, &column->type.key, ctx->error = ovsdb_atom_from_string(&key, NULL, &column->type.key,
key_string, ctx->symtab); key_string, ctx->symtab);
if (ctx->error) { if (ctx->error) {
free(key_string);
return; return;
} }