summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHans De Goede <hdegoede@redhat.com>2016-12-12 17:03:12 +0100
committerTimo Aaltonen <tjaalton@debian.org>2018-02-13 10:32:23 +0200
commit7e2d6a6487803c8561099a05f71628a4ff10fa13 (patch)
tree6424f8c41e9dabf5e1a73306e64990a25f535f0e /hw
parentd5a907231e7350fb543d7b2f6d971241d17abe19 (diff)
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> (cherry picked from commit c57c1e53ea3d76ebba5b2a23b7260817d3e6b921)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/common/xf86platformBus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
index 063e81c2a..16d934f44 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;
}