diff options
author | Jaganath Kanakkassery <[email protected]> | 2017-10-25 10:58:48 +0530 |
---|---|---|
committer | Marcel Holtmann <[email protected]> | 2017-10-29 14:07:10 +0100 |
commit | f17d858ed0a48270db4368d8cf370e3839ee6f4f (patch) | |
tree | 975b67fd9b1bf35c27320b25f11b8fa508d69a12 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 858ff38af77fc660092e82474ecc6ac135ed29fe (diff) |
Bluetooth: Fix potential memory leak
If command is added to req then it should be freed in case if
hdev is down or HCI_ADVERTISING flag is set.
This introduces a helper in hci_request to purge the cmd_q
to make cmd_q internal to hci_request which is used to fix
the leak.
This also replace accessing of cmd_q in hci_conn with the
new helper.
Signed-off-by: Jaganath Kanakkassery <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions