From 032b162ce88ef6ec8ad981fff709eb177d794589 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 11 Feb 2011 02:34:15 +0100 Subject: [PATCH] r300g: plug a memory leak in winsys --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index f6a013ef688..0cd9270c6dc 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -463,6 +463,7 @@ static struct r300_winsys_bo *radeon_winsys_bo_from_handle(struct r300_winsys_sc /* Open the BO. */ open_arg.name = whandle->handle; if (drmIoctl(ws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { + FREE(bo); goto fail; } bo->handle = open_arg.handle; -- 2.30.2