summaryrefslogtreecommitdiff
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
commitb04ca3ef45decced916dd43370d43a10f21e2991 (patch)
tree29cff4c984890678419916d9dc31bcb0e8f90882
parent367f8a8c44fc9dc05a0f7a2c1500111ca97f669c (diff)
Fix memory leak
-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 "";
}
}