fix missing unlock.
This commit is contained in:
parent
692a482adf
commit
12672a77e1
@ -4631,6 +4631,7 @@ p_instance(void)
|
|||||||
if (IsVarTerm(t2)) {
|
if (IsVarTerm(t2)) {
|
||||||
Yap_unify(ARG2, (t2 = Yap_MkNewApplTerm(f,arity)));
|
Yap_unify(ARG2, (t2 = Yap_MkNewApplTerm(f,arity)));
|
||||||
} else if (!IsApplTerm(t2) || FunctorOfTerm(t2) != f) {
|
} else if (!IsApplTerm(t2) || FunctorOfTerm(t2) != f) {
|
||||||
|
UNLOCK(ap->PELock);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
ptr = RepAppl(t2)+1;
|
ptr = RepAppl(t2)+1;
|
||||||
|
Reference in New Issue
Block a user