patch by Fab. Riguzzi to fix MPI interface

This commit is contained in:
Vítor Santos Costa
2015-02-06 18:08:06 +00:00
parent bae7b716e2
commit 7b4cd0d256
2 changed files with 4 additions and 10 deletions

View File

@@ -102,11 +102,7 @@ void
change_buffer_size(const size_t newsize) {
if ( BUFFER_SIZE>=BLOCK_SIZE && BUFFER_SIZE>=newsize)
return;
if (BUFFER_PTR) {
free(BUFFER_PTR);
}
BUFFER_PTR = (char*)malloc(newsize);
if( BUFFER_PTR == NULL ) {
if (realloc( BUFFER_PTR, newsize) == NULL) {
YAP_Error(0,0,"Prolog2Term: Out of memory.\n");
#ifdef MPI
MPI_Finalize();