Commit 77e6fcc
committed
[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>
Remove comments on WAF diagnostics object handling
Removed comments about WAF diagnostics object allocation and reuse.1 parent 57f3327 commit 77e6fcc
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
0 commit comments