Re: [PATCH] airo: fix memory leaks

2019-09-03 Thread Kalle Valo
Wenwen Wang wrote: > In proc_BSSList_open(), 'file->private_data' is allocated through kzalloc() > and 'data->rbuffer' is allocated through kmalloc(). In the following > execution, if an error occurs, they are not deallocated, leading to memory > leaks. To fix this issue, free the allocated memor

[PATCH] airo: fix memory leaks

2019-08-15 Thread Wenwen Wang
In proc_BSSList_open(), 'file->private_data' is allocated through kzalloc() and 'data->rbuffer' is allocated through kmalloc(). In the following execution, if an error occurs, they are not deallocated, leading to memory leaks. To fix this issue, free the allocated memory regions before returning th