apply value_free to PTQL_VALUE_TYPE_ANY
This commit is contained in:
parent
4b9e309c8b
commit
647f3d32c3
|
@ -546,7 +546,8 @@ static int ptql_branch_list_destroy(ptql_branch_list_t *branches)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (branch->lookup &&
|
if (branch->lookup &&
|
||||||
(branch->lookup->type == PTQL_VALUE_TYPE_STR) &&
|
((branch->lookup->type == PTQL_VALUE_TYPE_STR) ||
|
||||||
|
(branch->lookup->type == PTQL_VALUE_TYPE_ANY)) &&
|
||||||
!(branch->op_flags & PTQL_OP_FLAG_REF))
|
!(branch->op_flags & PTQL_OP_FLAG_REF))
|
||||||
{
|
{
|
||||||
if (branch->value.str) {
|
if (branch->value.str) {
|
||||||
|
|
Loading…
Reference in New Issue