diff options
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 8646b4616..c16f2afa7 100644 --- a/src/undo.c +++ b/src/undo.c @@ -3121,7 +3121,8 @@ u_freebranch(buf, uhp, uhpp) * all the pointers. */ if (uhp == buf->b_u_oldhead) { - u_freeheader(buf, uhp, uhpp); + while (buf->b_u_oldhead != NULL) + u_freeheader(buf, buf->b_u_oldhead, uhpp); return; } |