From: Jonas Fonseca Date: Sat, 24 Jan 2009 11:52:25 +0000 (+0100) Subject: Fix status loading of unmerged entries to avoid access to freed memory X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e85102418892f10ca567ff40f5e20e6a5e97f76;p=tig.git Fix status loading of unmerged entries to avoid access to freed memory --- diff --git a/tig.c b/tig.c index 9e80d15..7380c0f 100644 --- a/tig.c +++ b/tig.c @@ -4358,6 +4358,7 @@ status_run(struct view *view, const char *argv[], char status, enum line_type ty unmerged = NULL; if (collapse) { free(file); + file = NULL; view->lines--; continue; }