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
|
@ -2105,6 +2105,7 @@ AllocShared (ColormapPtr pmap, Pixel *ppix, int c, int r, int g, int b,
|
||||||
{
|
{
|
||||||
for (z++ ; z < npixShared; z++)
|
for (z++ ; z < npixShared; z++)
|
||||||
free(ppshared[z]);
|
free(ppshared[z]);
|
||||||
|
free(psharedList);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue