From 7747528435d77ad055a5c3124a89717e42807b9a Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 17 Mar 2016 10:39:37 +0100 Subject: lib, irmd: Fix memleaks This removes some memleaks present in the sockets layer. It also fixes the bad initialization of the difs_size param in the irm_msg. --- include/ouroboros/sockets.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ouroboros/sockets.h') diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h index b34537a7..871e3c36 100644 --- a/include/ouroboros/sockets.h +++ b/include/ouroboros/sockets.h @@ -51,7 +51,9 @@ struct irm_msg { int client_socket_open(char * file_name); int server_socket_open(char * file_name); +/* Caller has to free the buffer */ buffer_t * serialize_irm_msg(struct irm_msg * msg); +/* Caller has to free all the allocated fields in the message */ struct irm_msg * deserialize_irm_msg(buffer_t * data); #endif -- cgit v1.2.3