From a2c956fce8933d57a4ab01eee426d57b989b1151 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Sat, 22 Feb 2014 20:13:31 +0100 Subject: [PATCH] sclose(): free socket write buffer.. Oh! I was wondering! --- fio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fio.c b/fio.c index 378b69ac..6131cb38 100644 --- a/fio.c +++ b/fio.c @@ -1118,6 +1118,8 @@ sclose(struct sock *sp) else { if (sp->s_onclose != NULL) (*sp->s_onclose)(); + if (sp->s_wbuf != NULL) + free(sp->s_wbuf); # ifdef HAVE_OPENSSL if (sp->s_use_ssl) { /* XXX Don't wonder: as of v14.6 there is a problem in the IMAP code in -- 2.11.4.GIT