]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Plug minor memory leak
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 May 2012 15:35:06 +0000 (17:35 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 May 2012 15:35:06 +0000 (17:35 +0200)
ccache.c

index f793fc82b5557518697d49f09644bd50e7b2cbc5..8b50c36f18a758dab6d1fdb19b7dbe9a01666ac3 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -2022,6 +2022,7 @@ initialize(void)
                                fatal("%s", errmsg);
                        }
                        /* Missing config file in SYSCONFDIR is OK. */
+                       free(errmsg);
                }
 
                if ((p = getenv("CCACHE_DIR"))) {