From 918de599886ae3a7161d6ed3de12862fabaa86b3 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 29 Mar 2023 21:18:13 +0800 Subject: [PATCH] custom module: free memory returned by libc's getline --- src/modules/custom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/custom.cpp b/src/modules/custom.cpp index b7e1d2d..5a246af 100644 --- a/src/modules/custom.cpp +++ b/src/modules/custom.cpp @@ -88,6 +88,7 @@ void waybar::modules::Custom::continuousWorker() { output_ = {0, output}; dp.emit(); } + free(buff); }; }