From edca16a3edc601c03d6358e8d2395a5e840fc762 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Sat, 1 Oct 2011 07:48:29 +0900 Subject: [PATCH] drm mode : fix memory leak when freeing drmModeRes --- xf86drmMode.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/xf86drmMode.c b/xf86drmMode.c index f08e648..5cdaa65 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -96,6 +96,10 @@ void drmModeFreeResources(drmModeResPtr ptr) if (!ptr) return; + drmFree(ptr->fbs); + drmFree(ptr->crtcs); + drmFree(ptr->connectors); + drmFree(ptr->encoders); drmFree(ptr); } -- 1.7.4.1