shithub: wired

Download patch

ref: 6f2fd5526607692e2e800d0a1efa72ee92a6b138
parent: 47d30878a04c63db05127141d66ca83f07e5cd0e
author: james palmer <[email protected]>
date: Thu Jul 8 16:27:46 EDT 2021

fix file descriptor leak in writemessage()

--- a/main.c
+++ b/main.c
@@ -154,6 +154,7 @@
 
 		fprint(fd, "%s %s\n", prefix, buf);
 	};
+	close(fd);
 
 
 	/* clear: use of buf here means nothing, the write is 0 bytes.