Func: fix memory leaks in get_func_priority()

This commit is contained in:
Max Kellermann 2020-02-21 21:08:44 +01:00
parent 80d6bbc4dc
commit b84693e546

View file

@ -876,11 +876,13 @@ static int get_func_priority(const attr_list& attrs)
if ( ! IsIntegral(v->Type()->Tag()) )
{
Unref(v);
a->Error("expression is not of integral type");
continue;
}
priority = v->InternalInt();
Unref(v);
}
return priority;