db-ctl-base: Fix resource deallocation on error path in cmd_find().
Release resources now that we are returning to the caller on error.
@@ -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) {
