Memory leak in mhwd module
libmhwd/mhwd.cpp
file, fillDevices
function.
hd pointer is moved in the loop until it is NULL and later is passed to the hd_free_hd_list
function. The function should receive a pointer to the list head, not NULL.
Possible solution is to create a pointer to the head (hd_t *hd_head = hd
) before the loop and then pass it instead of hd.
I would have fixed it myself and sent merge request, but external users aren't allowed to fork and create any projects.