diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-18 16:55:37 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-18 16:55:37 +0200 |
commit | b04ca3ef45decced916dd43370d43a10f21e2991 (patch) | |
tree | 29cff4c984890678419916d9dc31bcb0e8f90882 /components/battery.c | |
parent | 367f8a8c44fc9dc05a0f7a2c1500111ca97f669c (diff) |
Fix memory leak
Diffstat (limited to 'components/battery.c')
-rw-r--r-- | components/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ""; } } |