From ac7f6bac6f5a60bae978367c92e442a9948ba1e1 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 399205c06..99bccf2c0 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;