diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-03-28 20:07:06 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-04-04 15:41:47 +0300 |
commit | 6e5020f46165862ff09211d5425c8b6a13966303 (patch) | |
tree | 4c3aa7506178088397b6c32acee16aae3c195ff7 | |
parent | a6c71ce5d2d2fe89e07a2ef5041c915acc3dc686 (diff) |
dix: fix memory leak in AllocPseudo
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 2e9a80647..188378bec 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1879,6 +1879,7 @@ AllocPseudo (int client, ColormapPtr pmap, int c, int r, Bool contig, { for (p = ppixTemp; p < ppixTemp + npix; p++) pmap->red[*p].refcnt = 0; + free(ppixTemp); return BadAlloc; } pmap->clientPixelsRed[client] = ppix; |