From: Davidlohr Bueso Date: Tue, 20 Dec 2011 11:58:16 +0000 (+0100) Subject: prlimit: use xalloc libs X-Git-Tag: v2.21-rc1~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=212db7f2af08572da42abf3220ccbefce9567f54;p=thirdparty%2Futil-linux.git prlimit: use xalloc libs Signed-off-by: Davidlohr Bueso --- diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index c785909e63..8235eb1438 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -452,7 +452,7 @@ static int parse_prlim(struct rlimit *lim, char *ops, size_t id) static int add_prlim(char *ops, struct list_head *lims, size_t id) { - struct prlimit *lim = calloc(1, sizeof(*lim)); + struct prlimit *lim = xcalloc(1, sizeof(*lim)); INIT_LIST_HEAD(&lim->lims); lim->desc = &prlimit_desc[id];