Commit 38a6e9e
committed
Realloc failure leaves memory safety issue
Set *rulep = NULL before free(rule) in the realloc failure branch, preventing stale pointer.1 parent 695433c commit 38a6e9e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
| 1845 | + | |
1845 | 1846 | | |
1846 | 1847 | | |
1847 | 1848 | | |
| |||
0 commit comments