free memory
This commit is contained in:
parent
4224382be1
commit
8ac1e23450
3
C/args.c
3
C/args.c
@ -116,7 +116,8 @@ Yap_ArgListToVector (Term listl, const param_t *def, int n)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
xarg *na = matchKey( NameOfFunctor( f ), a, n, def);
|
xarg *na = matchKey( NameOfFunctor( f ), a, n, def);
|
||||||
if (!na)
|
if (!na) {
|
||||||
|
free( a );
|
||||||
return NULL;
|
return NULL;
|
||||||
na->used = 1;
|
na->used = 1;
|
||||||
na->tvalue = ArgOfTerm(1, hd);
|
na->tvalue = ArgOfTerm(1, hd);
|
||||||
|
Reference in New Issue
Block a user