Free memory of pid string.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 30 May 2017 21:14:45 +0000 (23:14 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 30 May 2017 21:14:45 +0000 (23:14 +0200)
src/main.c

index 5fc4e20..ce6ac02 100644 (file)
@@ -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();