summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-07 00:56:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-07 00:56:39 +0200
commit25bf4f4901fe2360d29b7ea5a49b817310ac90dc (patch)
tree93090639259fe0d5c2e86e5dcc6c4e131af92cbe /src/fastd.c
parent33ec56398316af14eec762406f21e649fcc3cbf2 (diff)
downloadfastd-25bf4f4901fe2360d29b7ea5a49b817310ac90dc.tar
fastd-25bf4f4901fe2360d29b7ea5a49b817310ac90dc.zip
Fix memory leak
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 1f5c2bf..406cb53 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -538,6 +538,7 @@ static void handle_socket(fastd_context *ctx, int sockfd) {
(recvaddr.sa.sa_family == AF_INET6 && ctx->conf->n_dynamic_v6)) {
switch (packet_type) {
case PACKET_DATA:
+ fastd_buffer_free(buffer);
ctx->conf->protocol->handshake_init(ctx, &recvaddr, NULL);
break;