Commit 9e11b7a
committed
Fix Jira 903 BLE peripheral.characteristic() sometimes returns NULL unexpected
Root cause:
1. The stack doesn't release the resource and makes peripheral crashed.
Then central blocked.
Solution:
1. Fix memory leak issue and release the resource.
Changed File:
gatt.c - Modify the code to make sure the resource can be released.1 parent 19b230e commit 9e11b7a
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
812 | 818 | | |
813 | 819 | | |
814 | 820 | | |
| |||
824 | 830 | | |
825 | 831 | | |
826 | 832 | | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
| 833 | + | |
832 | 834 | | |
833 | 835 | | |
834 | 836 | | |
| |||
0 commit comments