diff options
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -457,6 +457,8 @@ static Change *change_alloc(Text *txt, size_t pos) { } static void change_free(Change *c) { + if (!c) + return; /* only free the new part of the span, the old one is still in use */ piece_free(c->new.start); if (c->new.start != c->new.end) |
