Commit fc2339c
committed
Fix double freed in remove_self_from_waiters()
free() is already invoked in list_remove(). Freeing the same pointer twice
can crash the program with an invalid free error or corrupt the heap.
Ensure a single memory-release path by removing the outer free() call.
close #571 parent 295a0d9 commit fc2339c
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
0 commit comments