Skip to content
Myr

Fix memory leak

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Call FIND_RESTORE_HL make a memory leak

authored by Vuong Hoang · committed by GitHub · parent 62b099a · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:kilo.c+1 added
996 unmodified lines
997998#define FIND_RESTORE_HL do { \999 if (saved_hl) { \1000 memcpy(E.row[saved_hl_line].hl,saved_hl, E.row[saved_hl_line].rsize); \1001 free(saved_hl); \1002 saved_hl = NULL; \1003 } \1004} while (0)1005
268 unmodified lines