Changeset 3536b4


Ignore:
Timestamp:
08/04/08 14:15:20 (6 years ago)
Author:
William Gropp <gropp@…>
Branches:
master
Children:
104a1e
Parents:
183ed8
Message:

[svn-r1253] Use the memory routines instead of raw calloc/free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mpi/romio/adio/common/system_hints.c

    ra505fe1 r3536b4  
    8080    fstat(fd, &statbuf); 
    8181    /* add 1 to size to make room for NULL termination */ 
    82     buffer = (char *)calloc(statbuf.st_size + 1, sizeof (char)); 
     82    buffer = (char *)MPIU_Calloc(statbuf.st_size + 1, sizeof (char)); 
    8383    if (buffer == NULL) return -1; 
    8484 
     
    109109        MPI_Info_set(info, key, val); 
    110110    } while ((token = strtok_r(NULL, "\n", &pos1)) != NULL); 
    111     free(buffer); 
     111    MPIU_Free(buffer); 
    112112    return 0; 
    113113} 
Note: See TracChangeset for help on using the changeset viewer.