summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2011-03-28 20:09:04 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2011-04-04 15:41:47 +0300
commitc1875ac25b7b730d464c98c4c151c35efd64a562 (patch)
tree3d61a580009fc3fd971d475a2d138e3d7f5a56d4
parent6e5020f46165862ff09211d5425c8b6a13966303 (diff)
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>
-rw-r--r--dix/colormap.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}