Re: [PATCH] realtek: fix memory leak in netevent handler

2023-02-13 Thread Sander Vanheule
Hi Jan, On Wed, 2023-02-08 at 22:53 +0100, Jan Hoffmann wrote: > The net_event_work struct is allocated, but only freed in a single case. > Move the allocation to the branch where it is actually needed, and free > it after the work has been done. > > Fixes: 03e1d93e0779 ("realtek: add driver

[PATCH] realtek: fix memory leak in netevent handler

2023-02-08 Thread Jan Hoffmann
The net_event_work struct is allocated, but only freed in a single case. Move the allocation to the branch where it is actually needed, and free it after the work has been done. Fixes: 03e1d93e0779 ("realtek: add driver support for routing offload") Signed-off-by: Jan Hoffmann --- I noticed this