summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-23 22:30:46 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-23 22:30:46 +0000
commit10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4 (patch)
tree8a307b5138b18dba0ed277d4deb85a8ca8e64347 /src/lib
parent1ca26ab86712575a5e89dcd68295b57fd27c5703 (diff)
parent47bd452352389925188ca4d36ae1c1ba611e6aeb (diff)
downloadouroboros-10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4.tar.gz
ouroboros-10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4.zip
Merged in sandervrijders/ouroboros/be-memleaks (pull request #568)
lib, ipcpd, irmd: Fix several memleaks
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dev.c1
-rw-r--r--src/lib/sockets.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 43543af3..8009a186 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -645,6 +645,7 @@ void ouroboros_fini()
free(ai.flows);
free(ai.ports);
+ free(ai.frcti);
pthread_rwlock_unlock(&ai.lock);
diff --git a/src/lib/sockets.c b/src/lib/sockets.c
index 9f1b326e..42676d11 100644
--- a/src/lib/sockets.c
+++ b/src/lib/sockets.c
@@ -98,7 +98,7 @@ irm_msg_t * send_recv_irm_msg(irm_msg_t * msg)
int sockfd;
uint8_t buf[IRM_MSG_BUF_SIZE];
ssize_t len;
- irm_msg_t * recv_msg;
+ irm_msg_t * recv_msg = NULL;
sockfd = client_socket_open(IRM_SOCK_PATH);
if (sockfd < 0)