r300g: plug a memory leak in winsys

This commit is contained in:
Marek Olšák 2011-02-11 02:34:15 +01:00
parent 862ebb411b
commit 032b162ce8

View file

@ -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;