Merge pull request #2659 from ideal/master

Fix a tiny memory leak
This commit is contained in:
Max Lv
2020-03-15 06:52:25 +08:00
committed by GitHub
+1
View File
@@ -546,6 +546,7 @@ get_default_conf(void)
return userconf;
// If not, fall back to the system-wide config.
free(userconf);
return sysconf;
#else
return "config.json";