6c7b302
From c57c1e53ea3d76ebba5b2a23b7260817d3e6b921 Mon Sep 17 00:00:00 2001
6c7b302
From: Hans De Goede <hdegoede@redhat.com>
6c7b302
Date: Mon, 12 Dec 2016 17:03:12 +0100
6c7b302
Subject: [PATCH xserver 1/6] xfree86: Free devlist returned by xf86MatchDevice
6c7b302
6c7b302
xf86MatchDevice returns a dynamically allocated list of GDevPtr-s,
6c7b302
free this when we're done with it.
6c7b302
6c7b302
Reviewed-by: Adam Jackson <ajax@redhat.com>
6c7b302
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
6c7b302
---
6c7b302
 hw/xfree86/common/xf86platformBus.c | 4 ++++
6c7b302
 1 file changed, 4 insertions(+)
6c7b302
6c7b302
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
6c7b302
index 063e81c..16d934f 100644
6c7b302
--- a/hw/xfree86/common/xf86platformBus.c
6c7b302
+++ b/hw/xfree86/common/xf86platformBus.c
6c7b302
@@ -479,6 +479,8 @@ xf86platformProbeDev(DriverPtr drvp)
6c7b302
                                         isGPUDevice(devList[i]) ? PLATFORM_PROBE_GPU_SCREEN : 0);
6c7b302
     }
6c7b302
 
6c7b302
+    free(devList);
6c7b302
+
6c7b302
     return foundScreen;
6c7b302
 }
6c7b302
 
6c7b302
@@ -505,6 +507,8 @@ xf86platformAddGPUDevices(DriverPtr drvp)
6c7b302
         }
6c7b302
     }
6c7b302
 
6c7b302
+    free(devList);
6c7b302
+
6c7b302
     return foundScreen;
6c7b302
 }
6c7b302
 
6c7b302
-- 
6c7b302
2.9.3
6c7b302