From a36b550ac4b984ef93ac6558abd929aef81eece7 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 30 May 2017 23:14:45 +0200 Subject: [PATCH] Free memory of pid string. --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 5fc4e20..ce6ac02 100644 --- a/src/main.c +++ b/src/main.c @@ -1785,6 +1785,7 @@ int main(int argc, char* argv[]) /* set the current pid in env */ pidstr = g_strdup_printf("%d", (int)getpid()); g_setenv("VIMB_PID", pidstr, TRUE); + g_free(pidstr); vimb_setup(); -- 2.20.1