diff options
author | Jakub Sitnicki <jkbs@redhat.com> | 2018-07-02 12:50:14 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-07-03 13:19:52 -0700 |
commit | d4f720a060b7c9318b143de1f19111aa56bb3740 (patch) | |
tree | f3335e72609ced8a94d6c42dc69c78582bb271ce /lib | |
parent | 93e6bda51a866806b41c1cb237416d703583ca55 (diff) | |
download | openvswitch-d4f720a060b7c9318b143de1f19111aa56bb3740.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db-ctl-base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/db-ctl-base.c b/lib/db-ctl-base.c index 13b4e4f72..df2d4300b 100644 --- a/lib/db-ctl-base.c +++ b/lib/db-ctl-base.c @@ -1285,6 +1285,7 @@ cmd_find(struct ctl_context *ctx) ctx->error = check_condition(table, row, ctx->argv[i], ctx->symtab, &satisfied); if (ctx->error) { + free(columns); return; } if (!satisfied) { |