valgrind.

This commit is contained in:
Vitor Santos Costa 2016-05-20 01:59:17 +01:00
parent 437a303681
commit a9fe413dd0
2 changed files with 5 additions and 0 deletions

View File

@ -1472,5 +1472,7 @@ void Yap_exit(int value) {
}
Yap_CloseStreams(false);
Yap_CloseReadline();
#if USE_SYSTEM_MALLOC
#endif
exit(value);
}

View File

@ -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));
HEAP_ERROR(lengv, size_t);
buf = concat(n, out, bufv, encv, lengv PASS_REGS);
free(bufv);
free(lengv);
free(encv);
return buf;
}