[hackers] [slstatus] Fix memory leak || Aaron Marcher

From: <git_AT_suckless.org>
Date: Fri, 18 May 2018 16:56:11 +0200 (CEST)

commit b04ca3ef45decced916dd43370d43a10f21e2991
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Fri May 18 16:55:37 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Fri May 18 16:55:37 2018 +0200

    Fix memory leak

diff --git a/components/battery.c b/components/battery.c
index 84b2c11..b05c171 100644
--- a/components/battery.c
+++ b/components/battery.c
_AT_@ -125,7 +125,7 @@
                                 return bprintf("%u:%02u", apm_info.minutes_left / 60,
                                                apm_info.minutes_left % 60);
                         } else {
- return strdup("");
+ return "";
                         }
                 }
 
Received on Fri May 18 2018 - 16:56:11 CEST

This archive was generated by hypermail 2.3.0 : Fri May 18 2018 - 17:00:32 CEST