diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-03-28 20:09:04 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-04-04 15:41:47 +0300 |
commit | c1875ac25b7b730d464c98c4c151c35efd64a562 (patch) | |
tree | 3d61a580009fc3fd971d475a2d138e3d7f5a56d4 | |
parent | 6e5020f46165862ff09211d5425c8b6a13966303 (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.c | 1 |
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; } } |