valgrind.
This commit is contained in:
parent
437a303681
commit
a9fe413dd0
2
C/init.c
2
C/init.c
@ -1472,5 +1472,7 @@ void Yap_exit(int value) {
|
|||||||
}
|
}
|
||||||
Yap_CloseStreams(false);
|
Yap_CloseStreams(false);
|
||||||
Yap_CloseReadline();
|
Yap_CloseReadline();
|
||||||
|
#if USE_SYSTEM_MALLOC
|
||||||
|
#endif
|
||||||
exit(value);
|
exit(value);
|
||||||
}
|
}
|
||||||
|
3
C/text.c
3
C/text.c
@ -1416,6 +1416,9 @@ void *Yap_Concat_Text(int n, seq_tv_t inp[], seq_tv_t *out USES_REGS) {
|
|||||||
lengv = (size_t *)malloc(n * sizeof(size_t));
|
lengv = (size_t *)malloc(n * sizeof(size_t));
|
||||||
HEAP_ERROR(lengv, size_t);
|
HEAP_ERROR(lengv, size_t);
|
||||||
buf = concat(n, out, bufv, encv, lengv PASS_REGS);
|
buf = concat(n, out, bufv, encv, lengv PASS_REGS);
|
||||||
|
free(bufv);
|
||||||
|
free(lengv);
|
||||||
|
free(encv);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user