shithub: riscv

Download patch

ref: fdf020f1309bffde33554f5a13c7b3a1a3fb1891
parent: dd1962f9aef94d50dd815ea750edc067633b1601
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Sep 3 13:21:24 EDT 2023

qio: fix memory leak in qproduce()

--- a/sys/src/9/port/qio.c
+++ b/sys/src/9/port/qio.c
@@ -646,6 +646,7 @@
 	if(q->len >= q->limit){
 		q->state |= Qflow;
 		iunlock(q);
+		freeb(b);
 		return -1;
 	}
 	producecnt += len;