free() change

This commit is contained in:
anon 2023-09-03 00:32:02 +02:00
parent c680adc384
commit 4ed1df9929

View File

@ -377,6 +377,7 @@ int change_input(const int c) {
break; break;
case ctrl('D'): case ctrl('D'):
changestring(input_line, newpat, change, totallines); changestring(input_line, newpat, change, totallines);
free(change);
input_mode = INPUT_NORMAL; input_mode = INPUT_NORMAL;
horswp_window(); horswp_window();
search(newpat); search(newpat);