Commit aca3772
Bluetooth: hci_sync: fix leaks when hci_cmd_sync_queue_once fails
When hci_cmd_sync_queue_once() returns with error, the destroy callback
will not be called.
Fix leaking references / memory on these failures.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 2969554 commit aca3772
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7460 | 7460 | | |
7461 | 7461 | | |
7462 | 7462 | | |
7463 | | - | |
| 7463 | + | |
7464 | 7464 | | |
7465 | 7465 | | |
7466 | 7466 | | |
7467 | 7467 | | |
7468 | | - | |
| 7468 | + | |
| 7469 | + | |
| 7470 | + | |
7469 | 7471 | | |
| 7472 | + | |
7470 | 7473 | | |
7471 | 7474 | | |
7472 | 7475 | | |
| |||
7505 | 7508 | | |
7506 | 7509 | | |
7507 | 7510 | | |
| 7511 | + | |
| 7512 | + | |
| 7513 | + | |
7508 | 7514 | | |
7509 | 7515 | | |
7510 | 7516 | | |
| |||
7544 | 7550 | | |
7545 | 7551 | | |
7546 | 7552 | | |
| 7553 | + | |
| 7554 | + | |
| 7555 | + | |
7547 | 7556 | | |
7548 | 7557 | | |
0 commit comments