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

Coverity #806: Another memory leak on OOM path.

parent 1b04e313
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* mi/micmap.c:
Coverity #806: Another memory leak on OOM path.
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Helper.c:
......
......@@ -587,8 +587,10 @@ miDoInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
if (nvtype)
{
vid = (VisualID *) xalloc (nvtype * sizeof (VisualID));
if (!vid)
if (!vid) {
xfree(preferredCVCs);
return FALSE;
}
}
depth->depth = d;
depth->numVids = nvtype;
......
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