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>
This commit is contained in:
Hans De Goede 2016-12-12 17:03:12 +01:00 committed by Adam Jackson
parent 32e632e858
commit c57c1e53ea

View File

@ -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;
}