From 25bf4f4901fe2360d29b7ea5a49b817310ac90dc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 7 Jun 2012 00:56:39 +0200 Subject: Fix memory leak --- src/fastd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3