summaryrefslogtreecommitdiff
path: root/src/lib/irm.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-17 15:38:05 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-17 15:38:05 +0100
commitd2bffe6cc47af18099d33b82920df0bb027da207 (patch)
tree54bc0a9cfb51c1759bb2056961c555fcc9979da7 /src/lib/irm.c
parent80679807f5ed13fd0a214bc6cd4e1c182d87bfae (diff)
parent02681c391cbc1cc08f2dea5d8499f301d9321147 (diff)
downloadouroboros-d2bffe6cc47af18099d33b82920df0bb027da207.tar.gz
ouroboros-d2bffe6cc47af18099d33b82920df0bb027da207.zip
Merged in sandervrijders/ouroboros/be (pull request #35)
lib: Add communication with IPCP daemon
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r--src/lib/irm.c2
1 files changed, 2 insertions, 0 deletions
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;
}