summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-10-28 09:52:37 -0500
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-01-07 22:50:01 +0000
commitd459f42e64f2bafef5124a456d2ad6fa2cd92a7f (patch)
tree18b1294ec08c11d421f28114145240e20f53ddca
parentcc7dedd6b51a01996ddab10fe8b84e30700d1570 (diff)
hw/xwin: Fix double-free in error path in winQueryRGBBitsAndMasks()
Signed-off-by: Ryan Pavlik <rpavlik@iastate.edu> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--hw/xwin/winshadgdi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/xwin/winshadgdi.c b/hw/xwin/winshadgdi.c
index 1e7cb006c..6339010b6 100644
--- a/hw/xwin/winshadgdi.c
+++ b/hw/xwin/winshadgdi.c
@@ -270,7 +270,6 @@ winQueryRGBBitsAndMasks (ScreenPtr pScreen)
else
{
ErrorF ("winQueryRGBBitsAndMasks - winQueryScreenDIBFormat failed\n");
- free (pbmih);
fReturn = FALSE;
}