sna: Free bo along unlikely one-off error path

Add a missing free for a never-hit error.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-10-22 15:00:16 +01:00
parent d788b69fdb
commit c0f31d822a
1 changed files with 1 additions and 0 deletions

View File

@ -1052,6 +1052,7 @@ static bool kgem_init_pinned_batches(struct kgem *kgem)
pin.alignment = 0;
if (drmIoctl(kgem->fd, DRM_IOCTL_I915_GEM_PIN, &pin)) {
gem_close(kgem->fd, pin.handle);
free(bo);
goto err;
}
bo->presumed_offset = pin.offset;