wt-status: release strbuf after use in read_rebase_todolist()
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 18:20:17 +0000 (20:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:29 +0000 (08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c
index 77c27c51134d2feff93befeee20f4523a37d524a..cafafb5ecdb95ee6076695ef4bca27f8e9836d8f 100644 (file)
@@ -1193,6 +1193,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines)
                string_list_append(lines, line.buf);
        }
        fclose(f);
+       strbuf_release(&line);
        return 0;
 }