summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-02-25 00:15:29 +0100
committerSander Vrijders <sander@ouroboros.rocks>2022-03-03 12:00:53 +0100
commit3330f7f22105e3a8b57f5c562144d8c3e338e156 (patch)
treee71198513cbc3f3d0f4d0d7370a3d4ed62114a94 /src/irmd/main.c
parent27374c05645cb6a656e82a9a0b6bc810082cfe4e (diff)
downloadouroboros-3330f7f22105e3a8b57f5c562144d8c3e338e156.tar.gz
ouroboros-3330f7f22105e3a8b57f5c562144d8c3e338e156.zip
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c1
1 files changed, 1 insertions, 0 deletions
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;
}