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:
parent
d788b69fdb
commit
c0f31d822a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue