shithub: mq

Download patch

ref: 02ce9b85e1a75ace6e7a9b78bb5533b9d4f8569d
parent: 3a3c39758e6075573454861be3cf61214d01d4a9
author: kvik <kvik@a-b.xyz>
date: Mon Aug 31 09:35:52 EDT 2020

fix File* reference leak

--- a/src/mq.c
+++ b/src/mq.c
@@ -105,6 +105,7 @@
 err:
 	free(mq->pipes);
 	pipeclose(mq->order);
+	if(d) closefile(d);
 	if(ctl) closefile(ctl);
 	if(order) closefile(order);
 	return nil;