code: drawterm

Download patch

ref: aa06c6a0e7737a56fbd2a8d932936796286e1741
parent: fe1f7fac39b177bc4f3b3b8d39034c23be447f4e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Dec 1 22:25:39 EST 2018

libsec: fix memory leak in pkcs1_decrypt() (from 9front)

--- a/libsec/tlshand.c
+++ b/libsec/tlshand.c
@@ -2837,6 +2837,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;