shithub: drawterm

Download patch

ref: c4ea4d299aa1bbbcc972c04adf06c18245ce7674
parent: 056ab63f72a0df0e105f46e60fa8756fd4011b75
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Sep 3 13:22:52 EDT 2023

qio: fix memory leak in qproduce()

--- a/kern/qio.c
+++ b/kern/qio.c
@@ -642,6 +642,7 @@
 	if(q->len >= q->limit){
 		q->state |= Qflow;
 		iunlock(&q->lk);
+		freeb(b);
 		return -1;
 	}
 	producecnt += len;