commit 7dac38e1af1c24582f92ef8b58365b1a873a144f parent cea24e923fa4144173e88cc98f57cd822ecb76b4 Author: phoebos <ben@bvnf.space> Date: Tue, 11 Oct 2022 14:34:50 +0100 ed: be sure to free Diffstat:
M | ed.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ed.c b/ed.c @@ -330,12 +330,14 @@ ed(char **startfile) { case 'q': if (changed == 0) { free(cbuf); + free(r); return 0; } printf("?\n"); break; case 'Q': free(cbuf); + free(r); return 0; case '\n': break;