From 3330f7f22105e3a8b57f5c562144d8c3e338e156 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 25 Feb 2022 00:15:29 +0100 Subject: irmd: Fix memory leak of ret_msg The ret_msg variable can leak in the main loop of the irmd in this failure path. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index a87f191a..f83e8e1e 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2078,6 +2078,7 @@ static void * mainloop(void * o) if (msg == NULL) { close(sfd); irm_msg__free_unpacked(msg, NULL); + free(ret_msg); continue; } -- cgit v1.2.3