From f747d03b1d3aa4e63417bd8486909f63b4a33be4 Mon Sep 17 00:00:00 2001 From: Völgyes Dávid Date: Wed, 6 Jul 2011 10:10:20 -0400 Subject: Fixes for leaks reported by cppcheck. --- src/egl/wayland/wayland-drm/wayland-drm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/egl/wayland/wayland-drm/wayland-drm.c') diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 3023cd02b07..ec96c045143 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -104,6 +104,7 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm, wl_client_post_error(client, &drm->object, WL_DRM_ERROR_INVALID_VISUAL, "invalid visual"); + free(buffer); return; } -- cgit v1.2.3