[PATCH 2/2] glxproxy: Fix memory leak on error path in CreateGLXPixmap (#50281)

Adam Jackson ajax at redhat.com
Mon Apr 7 10:47:24 PDT 2014


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/dmx/glxProxy/glxcmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c
index 964db40..f097906 100644
--- a/hw/dmx/glxProxy/glxcmds.c
+++ b/hw/dmx/glxProxy/glxcmds.c
@@ -2017,6 +2017,7 @@ CreateGLXPixmap(__GLXclientState * cl,
     }
 
     if (!(AddResource(glxpixmapId, __glXPixmapRes, pGlxPixmap))) {
+        free(pGlxPixmap->be_xids);
         free(pGlxPixmap);
         return BadAlloc;
     }
-- 
1.9.0



More information about the xorg-devel mailing list