Commit c02bef2
patch 9.1.1573: Memory leak when pressing Ctrl-D in cmdline mode
Problem: Memory leak when pressing Ctrl-D in cmdline mode
(after 9.1.1571).
Solution: Free prev_cmdbuff before assigning to it.
(zeertzjq).
Existing tests already cover this. This change fixes the CI failure.
closes: #17807
Signed-off-by: zeertzjq <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>1 parent 9f4a80e commit c02bef2
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1822 | 1822 | | |
1823 | 1823 | | |
1824 | 1824 | | |
| 1825 | + | |
| 1826 | + | |
1825 | 1827 | | |
1826 | 1828 | | |
1827 | 1829 | | |
| |||
2574 | 2576 | | |
2575 | 2577 | | |
2576 | 2578 | | |
2577 | | - | |
2578 | | - | |
2579 | 2579 | | |
2580 | | - | |
2581 | 2580 | | |
2582 | 2581 | | |
2583 | 2582 | | |
| |||
2595 | 2594 | | |
2596 | 2595 | | |
2597 | 2596 | | |
2598 | | - | |
2599 | | - | |
2600 | 2597 | | |
2601 | 2598 | | |
2602 | 2599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
| |||
0 commit comments