tex: do not free the buffer returned from ex_pathexpand() - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit f67ae2b5844b8e6ba7d5186a81fe1f1528cb9825
(DIR) parent e111e19608ce73e841506964dbd5dae4eff68ea1
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Tue, 26 Apr 2022 22:46:00 +0430
ex: do not free the buffer returned from ex_pathexpand()
Reported by mkf9 <mkf9@riseup.net>.
Diffstat:
M ex.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/ex.c b/ex.c
t@@ -672,7 +672,6 @@ static int ec_exec(char *loc, char *cmd, char *arg)
rep = cmd_pipe(ecmd, text, 1, 1);
if (rep)
lbuf_edit(xb, rep, beg, end);
- free(ecmd);
free(text);
free(rep);
return 0;