Commit 5f9634a
authored
fix: leak + double header tokenizing in simplecpp::load
This was catched using the leak sanitizer that is part of the address sanitizer.
On the line `ret[header2] = tokens;`, sometimes there is already a key `header2` in the `ret` map, causing both overriding(leak) and wasteful header tokenizing (two times at least).1 parent 62afdd0 commit 5f9634a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3249 | 3249 | | |
3250 | 3250 | | |
3251 | 3251 | | |
| 3252 | + | |
| 3253 | + | |
3252 | 3254 | | |
3253 | 3255 | | |
3254 | 3256 | | |
| |||
0 commit comments