Commit 9c8d6c7
authored
fix(sandbox): eliminate Box::leak memory leak in rewrite_forward_request (#715)
Remove Box::leak usage that permanently leaked one String allocation per
forward proxy request. Write the rewritten request line directly to the
output buffer during iteration instead of mutating a Vec<&str> element.
Closes #709
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>1 parent a2f9da5 commit 9c8d6c7
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
| 1627 | + | |
1637 | 1628 | | |
1638 | 1629 | | |
1639 | 1630 | | |
| |||
1642 | 1633 | | |
1643 | 1634 | | |
1644 | 1635 | | |
1645 | | - | |
1646 | | - | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
| |||
0 commit comments