diff options
| author | Colin Ian King <[email protected]> | 2019-12-12 18:32:28 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2019-12-18 19:52:02 +0200 |
| commit | b5316db229d5afd7ba4cdba05b4c4b4c6307b5e7 (patch) | |
| tree | ac04950c5e01c535a032bfe435c0c67be0ffae31 /tools/perf/scripts/python/bin | |
| parent | 509421acab6926a0a3edc3120d8b2a62ef2ee7a9 (diff) | |
ath11k: fix memory leak on reg_info
Currently a return path is leaking the previously allocate reg_info. Fix
this by exiting via the return path mem_free. Since the return value ret
is defaulted to 0, there is no need to re-assign ret to the 0 before
the goto.
Addresses-Coverity: ("Resource leak")
Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions