From deb1f4d841d402508d27a5bda0bf3a7c19cc0a6d Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 26 Feb 2013 15:51:15 +0100 Subject: [PATCH] setproctitle.c: declar tmp as static so valgrind will not detect a leak. --- src/setproctitle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setproctitle.c b/src/setproctitle.c index 399205c0..99bccf2c 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -80,7 +80,7 @@ static int spt_clearenv(void) { return 0; #else extern char **environ; - char **tmp; + static char **tmp; if (!(tmp = malloc(sizeof *tmp))) return errno; -- GitLab