diff options
author | Vuong Hoang <vuonghv.cs@gmail.com> | 2017-08-05 20:41:37 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 20:41:37 +0700 |
commit | 8e9a9bb750504593180591ba927df136252a2532 (patch) | |
tree | 730313b23aa6f278073f8f87ca6a2ea16d23418d | |
parent | 62b099af00b542bdb08471058d527af258a349cf (diff) | |
download | filo-8e9a9bb750504593180591ba927df136252a2532.tar.gz filo-8e9a9bb750504593180591ba927df136252a2532.zip |
Fix memory leak
Call FIND_RESTORE_HL make a memory leak
-rw-r--r-- | kilo.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -998,6 +998,7 @@ void editorFind(int fd) { #define FIND_RESTORE_HL do { \ if (saved_hl) { \ memcpy(E.row[saved_hl_line].hl,saved_hl, E.row[saved_hl_line].rsize); \ + free(saved_hl); \ saved_hl = NULL; \ } \ } while (0) |