free memory

This commit is contained in:
Vítor Santos Costa 2015-11-05 16:39:34 +00:00
parent 4224382be1
commit 8ac1e23450

View File

@ -116,7 +116,8 @@ Yap_ArgListToVector (Term listl, const param_t *def, int n)
return NULL;
}
xarg *na = matchKey( NameOfFunctor( f ), a, n, def);
if (!na)
if (!na) {
free( a );
return NULL;
na->used = 1;
na->tvalue = ArgOfTerm(1, hd);