[PATCH 2/2] glxproxy: Fix memory leak on error path in CreateGLXPixmap (#50281)
Jasper St. Pierre
jstpierre at mecheye.net
Thu Apr 17 10:00:30 PDT 2014
Reviewed-by: Jasper St. Pierre <jstpierre at mecheye.net>
On Mon, Apr 7, 2014 at 1:47 PM, Adam Jackson <ajax at redhat.com> wrote:
> 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
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
--
Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140417/b3f15b9d/attachment.html>
More information about the xorg-devel
mailing list