mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 08:20:14 +01:00
dix: fix memory leak in AllocShared
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
6e5020f461
commit
c1875ac25b
1 changed files with 1 additions and 0 deletions
|
|
@ -2105,6 +2105,7 @@ AllocShared (ColormapPtr pmap, Pixel *ppix, int c, int r, int g, int b,
|
|||
{
|
||||
for (z++ ; z < npixShared; z++)
|
||||
free(ppshared[z]);
|
||||
free(psharedList);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue