Repository navigation
Commit d129246
committed
fix(cypher): free complete return-clause state on parse-error paths
The over-cap ORDER BY rejection path (and the two sibling error paths
in parse_return_or_with) freed the items array but not the strings
inside it - ASan flagged 7 leaked bytes on the diag and Linux legs the
moment the new over-cap test exercised the path. Route all three error
paths through free_return_clause(), which already releases item
strings, CASE expressions, args and the ORDER BY key list.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 0a0ef51 commit d129246
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
| 1723 | + | |
| 1724 | + | |
1723 | 1725 | | |
1724 | 1726 | | |
1725 | 1727 | | |
| |||
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
1756 | | - | |
1757 | | - | |
| 1758 | + | |
1758 | 1759 | | |
1759 | 1760 | | |
1760 | 1761 | | |
| |||
1771 | 1772 | | |
1772 | 1773 | | |
1773 | 1774 | | |
1774 | | - | |
1775 | | - | |
| 1775 | + | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
| 1783 | + | |
1788 | 1784 | | |
1789 | 1785 | | |
1790 | 1786 | | |
| |||
0 commit comments