diff --git a/libkms/intel.c b/libkms/intel.c
index a1914f824e0b664af7ec5f58b57585c385ea8f4c..abae452574b86c8fb2e500fdd51d066cb9d9ebdc 100644 (file)
--- a/libkms/intel.c
+++ b/libkms/intel.c
struct intel_bo
{
struct kms_bo base;
- unsigned handle;
unsigned map_count;
- int mapped;
};
static int
pitch = (pitch + 512 - 1) & ~(512 - 1);
size = pitch * ((height + 4 - 1) & ~(4 - 1));
} else {
+ free(bo);
return -EINVAL;
}