From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 30 May 2017 21:14:45 +0000 (+0200)
Subject: Free memory of pid string.
X-Git-Url: https://git.owens.tech/dummy.html/dummy.html/git?a=commitdiff_plain;h=a36b550ac4b984ef93ac6558abd929aef81eece7;p=vimb.git

Free memory of pid string.
---

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();