mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 05:10:07 +01: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
7f240aaf15
commit
727bb5b313
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++)
|
||||
pmap->red[*p].refcnt = 0;
|
||||
free(ppixTemp);
|
||||
return BadAlloc;
|
||||
}
|
||||
pmap->clientPixelsRed[client] = ppix;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue