Commit fcd7a4c
committed
fix: leak of the key list on realloc failure in the simple KMI
realloc was assigned back to priv.dk_list, so a failure overwrote the
only pointer to the existing buffer with NULL and leaked it. Use a
temporary and free the original on failure.1 parent 65bdd67 commit fcd7a4c
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | | - | |
200 | | - | |
201 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
0 commit comments