Commit b6ff232
committed
platform:FreeRTOS:fix memory cannot be freed once task exits
Task handle must be storead in temporary variable and then memory is to be freed. Else task exits before memory free is executed.
Signed-off-by: Ajay Bhargav <ajay.bhargav@waybyte.in>1 parent c869ebb commit b6ff232
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 53 | + | |
| 54 | + | |
58 | 55 | | |
| 56 | + | |
59 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments