From 1e85102418892f10ca567ff40f5e20e6a5e97f76 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 24 Jan 2009 12:52:25 +0100 Subject: [PATCH] Fix status loading of unmerged entries to avoid access to freed memory --- tig.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.32.0.93.g670b81a890