diff options
author | 2019-08-15 22:50:02 -0500 | |
---|---|---|
committer | 2019-09-03 16:39:33 +0300 | |
commit | 145a32fe57e3ce195f52611ebadd0df911a56615 (patch) | |
tree | af77e02f09aab82564f130ee324d957400b3f9ce /tools/perf/scripts/python/stackcollapse.py | |
parent | zd1211rw: remove false assertion from zd_mac_clear() (diff) | |
download | linux-dev-145a32fe57e3ce195f52611ebadd0df911a56615.tar.xz linux-dev-145a32fe57e3ce195f52611ebadd0df911a56615.zip |
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: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions