diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2020-07-02 10:46:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 10:46:46 +0200 |
commit | 5375e13141b733d5213440f396342729889c22ba (patch) | |
tree | dba4b57be2dfaca6771f319cc53015ab8eb8d3fd | |
parent | f12546b4f3dc8a4b84fbba3f2e06a02a9322ccc0 (diff) | |
parent | 8e9a9bb750504593180591ba927df136252a2532 (diff) | |
download | filo-5375e13141b733d5213440f396342729889c22ba.tar.gz filo-5375e13141b733d5213440f396342729889c22ba.zip |
Merge pull request #52 from vuonghv/master
Fix 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) |