summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c50a9c)
raw | patch | inline | side by side (parent: 2c50a9c)
author | Aman Gupta <aman@tmm1.net> | |
Sat, 22 Aug 2009 08:04:10 +0000 (10:04 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 22 Aug 2009 08:04:10 +0000 (10:04 +0200) |
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index c25c88d11311ded647baeca9aa63d75ac88c7d3c..9f3cfd3ba1b66ca8b6f81f42519adf941dc2a87b 100644 (file)
--- a/src/network.c
+++ b/src/network.c
/* Lock and wait for more data to come in */
pthread_mutex_lock (&receive_list_lock);
while ((listen_loop == 0)
- && (receive_list_head == NULL))
+ && (receive_list_head == NULL))
pthread_cond_wait (&receive_list_cond, &receive_list_lock);
/* Remove the head entry and unlock */
if (se == NULL)
{
- ERROR ("network plugin: Got packet from FD %i, but can't "
- "find an appropriate socket entry.",
- ent->fd);
- sfree (ent);
- continue;
+ ERROR ("network plugin: Got packet from FD %i, but can't "
+ "find an appropriate socket entry.",
+ ent->fd);
+ sfree (ent->data);
+ sfree (ent);
+ continue;
}
parse_packet (se, ent->data, ent->data_len, /* flags = */ 0);
+ sfree (ent->data);
sfree (ent);
} /* while (42) */
if (send_buffer_fill > 0)
flush_buffer ();
- free (send_buffer);
+ sfree (send_buffer);
/* TODO: Close `sending_sockets' */