From: Michael Brown Date: Fri, 28 Sep 2012 09:54:07 +0000 (+0100) Subject: [tls] Fix potential memory leak X-Git-Tag: v1.20.1~1636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23db2848813a9d872e1d71272e7f41df7d0d01c;p=thirdparty%2Fipxe.git [tls] Fix potential memory leak Signed-off-by: Michael Brown --- diff --git a/src/net/tls.c b/src/net/tls.c index 52a833935..4ad131c87 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -1749,6 +1749,7 @@ static int tls_new_record ( struct tls_session *tls, unsigned int type, list_del ( &iobuf->list ); if ( ! list_empty ( rx_data ) ) { DBGC ( tls, "TLS %p overlength non-data record\n", tls ); + free_iob ( iobuf ); return -EINVAL_NON_DATA; }