Commit 0312d34
[AppSec] Free the WAF diagnostics of every config applied to the builder
ddwaf_builder_add_or_update_config allocates a fresh diagnostics object on
every call and overwrites the one it is given without freeing it, so reusing
a single object across the loop leaked all but the last one.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 328c169 commit 0312d34
1 file changed
Lines changed: 9 additions & 1 deletion
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
258 | 266 | | |
259 | 267 | | |
260 | 268 | | |
| |||
0 commit comments