Browse Source

[tls] Fix potential memory leak

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
d23db28488
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/tls.c

+ 1
- 0
src/net/tls.c View File

1749
 	list_del ( &iobuf->list );
1749
 	list_del ( &iobuf->list );
1750
 	if ( ! list_empty ( rx_data ) ) {
1750
 	if ( ! list_empty ( rx_data ) ) {
1751
 		DBGC ( tls, "TLS %p overlength non-data record\n", tls );
1751
 		DBGC ( tls, "TLS %p overlength non-data record\n", tls );
1752
+		free_iob ( iobuf );
1752
 		return -EINVAL_NON_DATA;
1753
 		return -EINVAL_NON_DATA;
1753
 	}
1754
 	}
1754
 
1755
 

Loading…
Cancel
Save