diff options
author | Marek Olšák <[email protected]> | 2011-02-11 02:34:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-02-11 02:34:15 +0100 |
commit | 032b162ce88ef6ec8ad981fff709eb177d794589 (patch) | |
tree | 6cde582db1404831a71fe017aeb4b8d9f470796a /src/gallium | |
parent | 862ebb411b911f28bc93316e9e68c42f69f4dff3 (diff) |
r300g: plug a memory leak in winsys
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |