[PATCH] prlimit: use xalloc libs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Davidlohr Bueso <dave@xxxxxxx>

Signed-off-by: Davidlohr Bueso <dave@xxxxxxx>
---
 sys-utils/prlimit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index c785909..8235eb1 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];
-- 
1.7.4.1



--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux