xf86drm: fix mem leak in drm_usb_dev_path()
sysfs_uevent_get()
returns a strndup()
ed string, which must be free()
d.
Fixes: bf63f8ac ("libdrm: Handle usb_interface devices for usb parsing")
/cc @evelikov since you reviewed !45 (merged) :)
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
sysfs_uevent_get()
returns a strndup()
ed string, which must be free()
d.
Fixes: bf63f8ac ("libdrm: Handle usb_interface devices for usb parsing")
/cc @evelikov since you reviewed !45 (merged) :)