code: plan9front

Download patch

ref: dc952dad295700a836cf91ec66b1c443e5bbb4b7
parent: c1b63b53efca6908bd4d9e14da96540e2d0c591a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 11 20:14:07 EST 2022

libauth: Fix a memory leak in auth_getkey (thanks josiah fentsos)

--- a/sys/src/libauth/auth_getkey.c
+++ b/sys/src/libauth/auth_getkey.c
@@ -25,6 +25,7 @@
 		werrstr("auth_getkey: /factotum may be bad: didn't get key %s", params);
 		return -1;
 	}
+	free(d);
 	switch(pid = fork()){
 	case -1:
 		werrstr("can't fork for %s: %r", name);