Commit 76141ea
committed
mbstring: Fix memory leak in mail header parsing
A header field name with no value (input ending at the colon) leaves
fld_name allocated but unreleased, since the cleanup blocks only fire
when both fld_name and fld_val are set. Release the dangling fld_name in
both the loop-body and end-of-input branches.1 parent 17f6752 commit 76141ea
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4453 | 4453 | | |
4454 | 4454 | | |
4455 | 4455 | | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
4456 | 4459 | | |
4457 | 4460 | | |
4458 | 4461 | | |
| |||
4498 | 4501 | | |
4499 | 4502 | | |
4500 | 4503 | | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
4501 | 4507 | | |
4502 | 4508 | | |
4503 | 4509 | | |
| |||
0 commit comments