From 3768776c7b4f7f79f52dc025d50a5e2d214f5b2c Mon Sep 17 00:00:00 2001 From: liuchao173 <55137861+liuchao173@users.noreply.github.com> Date: Mon, 2 Dec 2019 19:46:53 +0800 Subject: [PATCH 44/53] free polscript if irqbalance exit polscript is alloced in parse_command_line and isn't freed when irqbalance exit --- irqbalance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irqbalance.c b/irqbalance.c index 7630e38..5134f9d 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -702,6 +702,8 @@ int main(int argc, char** argv) out: free_object_tree(); free_cl_opts(); + if (polscript) + free(polscript); /* Remove pidfile */ if (!foreground_mode && pidfile) -- 2.23.0