Description:
A small fix, it appears that wq->driver_name is dynamically allocated via strdup in accfg_get_param_str, but never gets properly freed alongside similar variables (e.g. mode, state, name) when there is an error. This would cause a small memory leak when this variable isn't freed. This PR adds that small fix that frees this variable and ensures no memory leak would occur.
Description: A small fix, it appears that
wq->driver_name
is dynamically allocated viastrdup
inaccfg_get_param_str
, but never gets properly freed alongside similar variables (e.g. mode, state, name) when there is an error. This would cause a small memory leak when this variable isn't freed. This PR adds that small fix that frees this variable and ensures no memory leak would occur.