loader: Fix leak of kernel driver name
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jan 2020 15:50:16 +0000 (07:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Jan 2020 18:08:17 +0000 (10:08 -0800)
commit594cb3035615b3a6cf3dc09ccee30554b56eb2f3
treeebbc385026ef1fd1b7efaf9b9f7b9b8bb7007dc0
parentf09c466732e4a5b648d7503787777c926dd93c29
loader: Fix leak of kernel driver name

This is strdup'd, it needs to be freed.

CID: 1458032
Fixes: f93bb2fb102 ("loader: Check if the kernel driver is i915 before loading iris")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3630>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3630>
src/loader/loader.c