mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 03:28:11 +02:00
dix: fix memory leak in AllocPseudo
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org>
This commit is contained in:
parent
15d67a32a1
commit
e884c5bf10
1 changed files with 1 additions and 0 deletions
|
|
@ -1879,6 +1879,7 @@ AllocPseudo (int client, ColormapPtr pmap, int c, int r, Bool contig,
|
||||||
{
|
{
|
||||||
for (p = ppixTemp; p < ppixTemp + npix; p++)
|
for (p = ppixTemp; p < ppixTemp + npix; p++)
|
||||||
pmap->red[*p].refcnt = 0;
|
pmap->red[*p].refcnt = 0;
|
||||||
|
free(ppixTemp);
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
pmap->clientPixelsRed[client] = ppix;
|
pmap->clientPixelsRed[client] = ppix;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue