From b04ca3ef45decced916dd43370d43a10f21e2991 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Fri, 18 May 2018 16:55:37 +0200 Subject: Fix memory leak --- components/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/battery.c') diff --git a/components/battery.c b/components/battery.c index 84b2c11..b05c171 100644 --- a/components/battery.c +++ b/components/battery.c @@ -125,7 +125,7 @@ return bprintf("%u:%02u", apm_info.minutes_left / 60, apm_info.minutes_left % 60); } else { - return strdup(""); + return ""; } } -- cgit v1.2.3