diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-12-22 03:08:15 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-15 16:31:09 +0100 |
commit | fe2570fbf3dfce39996819deeaf1693ac6d7b5a3 (patch) | |
tree | ab13cc5bf32bd6225d207c85e6341fce70f4c35c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b62ce02e157afa9b57d7f0625e8c585935f422a5 (diff) |
staging: wilc1000: fix memory leak in wilc_add_rx_gtk
In case *mode* happens to be different than WILC_AP_MODE and
WILC_STATION_MODE, gtk_key is not released, hence leanding
to a memory leak. So, in this case it is safer to release
gtk_key just before returning to callers.
Addresses-Coverity-ID: 1476020 ("Resource leak")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions