From 9b2d063f47427490f4a605ccc708cdfab522f9d9 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 2 Jun 2010 16:07:08 -0400 Subject: [PATCH] Mark the argument array as freed in argv_free --- tig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tig.c b/tig.c index a9924c9..f842de5 100644 --- a/tig.c +++ b/tig.c @@ -685,6 +685,7 @@ argv_free(const char *argv[]) for (argc = 0; argv[argc]; argc++) free((void *) argv[argc]); + argv[0] = NULL; } static void -- 2.30.2