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 | 0defd807bfab30bbe1b8bf2e4ea68828f4fa1c48 (patch) | |
tree | 29cff4c984890678419916d9dc31bcb0e8f90882 | |
parent | 57f1d43d9b931faa2fb1454529e05518e7b08010 (diff) |
Fix memory leak
-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 ""; } } |