summaryrefslogtreecommitdiff
path: root/general.c
diff options
context:
space:
mode:
Diffstat (limited to 'general.c')
-rw-r--r--general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/general.c b/general.c
index eb68141..d027ad6 100644
--- a/general.c
+++ b/general.c
@@ -1041,13 +1041,13 @@ vyatta_user_in_group(uid_t ruid, char *grp_name)
do {
psize = sysconf(_SC_GETPW_R_SIZE_MAX);
- pbuf = (char *) malloc(psize);
+ pbuf = (char *) xmalloc(psize);
if (!pbuf) {
break;
}
gsize = sysconf(_SC_GETGR_R_SIZE_MAX);
- gbuf = (char *) malloc(gsize);
+ gbuf = (char *) xmalloc(gsize);
if (!gbuf) {
break;
}