From c21608d996e5f35c110de650b1c40f493ff6088b Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Jul 2020 00:23:31 +0200 Subject: battstat: Free only dynamically allocated memory --- battstat/battstat-upower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c index 042d6098..2a3c6541 100644 --- a/battstat/battstat-upower.c +++ b/battstat/battstat-upower.c @@ -102,7 +102,7 @@ error_shutdownclient: upc = NULL; error_out: - return "Can not initialize upower"; + return g_strdup ("Can not initialize upower"); } void -- cgit v1.2.1