intel / idxd-config

Accel-config / libaccel-config
Other
59 stars 35 forks source link

Free driver_name in case of early exit #52

Closed nmishra31 closed 7 months ago

nmishra31 commented 8 months ago

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.

ramesh-thomas commented 7 months ago

This was already merged