Properly free drm plane during creation of sprites
If we fail to allocate space for a new drm_sprite, then we should
properly call drmModeFreePlane (not free) to release the drm plane.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index d637e75..75644e1 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -2107,7 +2107,7 @@
if (!sprite) {
weston_log("%s: out of memory\n",
__func__);
- free(plane);
+ drmModeFreePlane(plane);
continue;
}