From 0a24654129847cf5cd61b5e8fb54c8f9c7441c55 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 17 Sep 2009 17:28:08 -0700 Subject: [PATCH] drmModeFreeConnector: free encoders and properties These were leaking. Signed-off-by: Keith Packard --- libdrm/xf86drmMode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c index ea11207e..88b4fe3a 100644 --- a/libdrm/xf86drmMode.c +++ b/libdrm/xf86drmMode.c @@ -116,6 +116,9 @@ void drmModeFreeConnector(drmModeConnectorPtr ptr) if (!ptr) return; + drmFree(ptr->encoders); + drmFree(ptr->prop_values); + drmFree(ptr->props); drmFree(ptr->modes); drmFree(ptr);