From af722a4b927d04e5f3e1ae71495cf956fadfa3c2 Mon Sep 17 00:00:00 2001 From: ideal Date: Sun, 15 Mar 2020 01:21:51 +0800 Subject: [PATCH] Fix a tiny memory leak --- src/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.c b/src/utils.c index d243003f..87107aa3 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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";