Skip to content
Commit 145a32fe authored by Wenwen Wang's avatar Wenwen Wang Committed by Kalle Valo
Browse files

airo: fix memory leaks



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 the error.

Signed-off-by: default avatarWenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 7a2eb736
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment