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