Skip to content
  • Wenwen Wang's avatar
    145a32fe
    airo: fix memory leaks · 145a32fe
    Wenwen Wang authored
    
    
    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>
    145a32fe
    airo: fix memory leaks
    Wenwen Wang authored
    
    
    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>
Loading