summaryrefslogtreecommitdiff
path: root/libkms/nouveau.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkms/nouveau.c')
-rw-r--r--libkms/nouveau.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libkms/nouveau.c b/libkms/nouveau.c
index 0e24a155f857..608092f586d1 100644
--- a/libkms/nouveau.c
+++ b/libkms/nouveau.c
@@ -102,6 +102,7 @@ nouveau_bo_create(struct kms_driver *kms,
pitch = (pitch + 512 - 1) & ~(512 - 1);
size = pitch * height;
} else {
+ free(bo);
return -EINVAL;
}