diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-07 00:56:39 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-07 00:56:39 +0200 |
commit | 25bf4f4901fe2360d29b7ea5a49b817310ac90dc (patch) | |
tree | 93090639259fe0d5c2e86e5dcc6c4e131af92cbe | |
parent | 33ec56398316af14eec762406f21e649fcc3cbf2 (diff) | |
download | fastd-25bf4f4901fe2360d29b7ea5a49b817310ac90dc.tar fastd-25bf4f4901fe2360d29b7ea5a49b817310ac90dc.zip |
Fix memory leak
-rw-r--r-- | src/fastd.c | 1 |
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; |