diff --git a/os/xdmcp.c b/os/xdmcp.c index ce14a7069..83c8af62c 100644 --- a/os/xdmcp.c +++ b/os/xdmcp.c @@ -1518,7 +1518,7 @@ get_mcast_options(int argc, char **argv, int i) else { struct multicastinfo *mcastinfo, *mcl; - mcastinfo = malloc(sizeof(struct multicastinfo)); + mcastinfo = XNFalloc(sizeof(struct multicastinfo)); mcastinfo->next = NULL; mcastinfo->ai = firstai; mcastinfo->hops = hopcount;