Commit b472ce73 authored by Adam Jackson's avatar Adam Jackson 🎧

Coverity #836: Fix another memory leak.

parent 9c84ed5f
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Config.c:
Coverity #836: Fix another memory leak.
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Config.c:
......
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Config.c,v 1.24 2006/04/03 22:00:06 ajax Exp $ */
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Config.c,v 1.25 2006/04/07 01:34:29 ajax Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v 3.276 2003/10/08 14:58:26 dawes Exp $ */
......@@ -2034,8 +2034,10 @@ configImpliedLayout(serverLayoutPtr servlayoutp, XF86ConfScreenPtr conf_screen)
slp = xnfcalloc(1, 2 * sizeof(screenLayoutRec));
slp[0].screen = xnfcalloc(1, sizeof(confScreenRec));
slp[1].screen = NULL;
if (!configScreen(slp[0].screen, conf_screen, 0, from))
if (!configScreen(slp[0].screen, conf_screen, 0, from)) {
xfree(slp);
return FALSE;
}
servlayoutp->id = "(implicit)";
servlayoutp->screens = slp;
servlayoutp->inactives = xnfcalloc(1, sizeof(GDevRec));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment