aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 55957c0..b92258f 100644
--- a/text.c
+++ b/text.c
@@ -545,9 +545,9 @@ 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)
piece_free(c->new.end);
+ piece_free(c->new.start);
free(c);
}