summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-18 16:55:37 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-18 16:55:37 +0200
commit0defd807bfab30bbe1b8bf2e4ea68828f4fa1c48 (patch)
tree29cff4c984890678419916d9dc31bcb0e8f90882 /components
parent57f1d43d9b931faa2fb1454529e05518e7b08010 (diff)
Fix memory leak
Diffstat (limited to 'components')
-rw-r--r--components/battery.c2
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 "";
}
}