wt-status: release strbuf after use in read_rebase_todolist()
[gitweb.git] / 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;
 }