From 722b769e4d519f2428ee893a78cafa999151bb1c Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 17 Mar 2016 14:37:49 +0100 Subject: lib: Add communication with IPCP daemon This adds the messages required for the IRMd to communicate with an IPC Process through the library. --- src/lib/irm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/irm.c') diff --git a/src/lib/irm.c b/src/lib/irm.c index a1847eed..e4804074 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -44,6 +44,8 @@ static int send_irm_msg(struct irm_msg * msg) } if (write(sockfd, buf->data, buf->size) == -1) { + free(buf->data); + free(buf); close(sockfd); return -1; } -- cgit v1.2.3