git: 9front

Download patch

ref: 6cde9b95b2a99577bc1123b85cf5de65df86f884
parent: fb8cf1059efd9de36b345bc87a2c596c67340483
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);
--