From 4805b4be1527b5599a96880bfe616ba764944a73 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Mon, 28 Mar 2011 20:09:04 +0300 Subject: dix: fix memory leak in AllocShared Signed-off-by: Tiago Vignatti Reviewed-by: Peter Hutterer Reviewed-by: Nicolas Peninguy --- dix/colormap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/colormap.c b/dix/colormap.c index 188378bec..0e1feb6c4 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -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; } } -- cgit v1.2.3