Return to pigs.c CVS log | Up to [local] / src / usr.bin / systat |
version 1.20, 2007/02/25 18:21:24 | version 1.21, 2007/09/02 15:19:35 | ||
---|---|---|---|
|
|
||
} | } | ||
if (nproc > lastnproc) { | if (nproc > lastnproc) { | ||
free(pt); | free(pt); | ||
if ((pt = | if ((pt = calloc(nproc + 1, sizeof(struct p_times))) == NULL) { | ||
malloc((nproc + 1) * sizeof(struct p_times))) == NULL) { | |||
error("Out of memory"); | error("Out of memory"); | ||
die(); | die(); | ||
} | } |