Re: [PATCH ethtool 1/2] fix memory leaks in do_sfeatures()

2020-09-28 Thread Michal Kubecek
On Fri, Sep 25, 2020 at 09:05:26AM +0200, Ivan Vecera wrote: > Memory blocks referenced by new_state and old_state are never freed. > For efeatures there is no need to check pointer as free() can be called > with NULL parameter. > > Fixes: 6042804cf6ec ("Change -k/-K options to use ETHTOOL_{G,S}FE

[PATCH ethtool 1/2] fix memory leaks in do_sfeatures()

2020-09-25 Thread Ivan Vecera
Memory blocks referenced by new_state and old_state are never freed. For efeatures there is no need to check pointer as free() can be called with NULL parameter. Fixes: 6042804cf6ec ("Change -k/-K options to use ETHTOOL_{G,S}FEATURES") Cc: Michal Kubecek Signed-off-by: Ivan Vecera --- ethtool.