Skip to content

Commit dd52209

Browse files
committed
Fixing a 'calloc' error when building with 'gcc.' Resolves #13.
1 parent 55400e2 commit dd52209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpibind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ int distrib_greedy(hwloc_topology_t topo, int ntasks, int *nthreads_pt,
933933
}
934934

935935
/* I know that this case has less tasks than NUMAs */
936-
numas_per_task = calloc(ntasks, sizeof(int));
936+
numas_per_task = malloc(ntasks * sizeof(int));
937937
distrib(num_numas, ntasks, numas_per_task);
938938
/* Verbose */
939939
#if VERBOSE >=1

0 commit comments

Comments
 (0)