[PATCH 04/10] dix: fix memory leak in AllocShared
Tiago Vignatti
tiago.vignatti at nokia.com
Tue Mar 29 08:12:30 PDT 2011
Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
dix/colormap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dix/colormap.c b/dix/colormap.c
index 188378b..0e1feb6 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;
}
}
--
1.7.0.4
More information about the xorg-devel
mailing list