Coverity #806: Another memory leak on OOM path.
This commit is contained in:
parent
1b04e31392
commit
d61219aaad
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user