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

db-ctl-base: fix memory leak in cmd-get() function

Memory leak occured in case specified key was not found in table
record.

Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Damijan Skvarc
2019-07-05 13:38:47 +02:00
committed by Ben Pfaff
parent d65586b6fa
commit 7b34595d88

View File

@@ -986,6 +986,7 @@ cmd_get(struct ctl_context *ctx)
ctx, "no key \"%s\" in %s record \"%s\" column %s",
key_string, table->name, record_id, column->name);
free(key_string);
ovsdb_atom_destroy(&key, column->type.key.type);
return;
}
} else {