Re: [PATCH ethtool 2/2] netlink: fix memory leak

2020-09-28 Thread Michal Kubecek
On Thu, Sep 24, 2020 at 09:27:58PM +0200, Ivan Vecera wrote: > Potentially allocated memory allocated for mask is not freed when > the allocation for value fails. > > Fixes: 81a30f416ec7 ("netlink: add bitset command line parser handlers") > > Cc: Michal Kubecek > Signed-off-by: Ivan Vecera > -

[PATCH ethtool 2/2] netlink: fix memory leak

2020-09-24 Thread Ivan Vecera
Potentially allocated memory allocated for mask is not freed when the allocation for value fails. Fixes: 81a30f416ec7 ("netlink: add bitset command line parser handlers") Cc: Michal Kubecek Signed-off-by: Ivan Vecera --- netlink/parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)