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 17:27:12 +0300 |
commit | 4805b4be1527b5599a96880bfe616ba764944a73 (patch) | |
tree | 1da34b279c3cd5109e12e40519ee3cd2cabedf53 | |
parent | e884c5bf10e9412a1b4621bf5541b4f722024927 (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; } } |