shithub: riscv

Download patch

ref: 9eeca04d87ff362a524a4f7d06b68fbc7f6a256a
parent: 2b1454e81c8ee4572408096f4593678d184da130
parent: 117f177ccf688b7aea8b57133b442a93840fafd5
author: cinap_lenrek <[email protected]>
date: Sat Dec 1 22:27:19 EST 2018

merge

--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -2832,6 +2832,7 @@
 	if(y == nil)
 		return nil;
 	data = mptobytes(y, (mpsignif(y)+7)/8);
+	mpfree(y);
 	if((data->len = pkcs1unpadbuf(data->data, data->len, sec->rsapub->n, 2)) < 0){
 		freebytes(data);
 		return nil;