Skip to content

Commit

Permalink
valgrind.
Browse files Browse the repository at this point in the history
  • Loading branch information
vscosta committed May 20, 2016
1 parent 437a303 commit a9fe413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions C/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,5 +1472,7 @@ void Yap_exit(int value) {
}
Yap_CloseStreams(false);
Yap_CloseReadline();
#if USE_SYSTEM_MALLOC
#endif
exit(value);
}
3 changes: 3 additions & 0 deletions C/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a9fe413

Please sign in to comment.