shithub: riscv

Download patch

ref: 31ed5d7d2ffd891b88e2d97c0706851fab94a06c
parent: dc952dad295700a836cf91ec66b1c443e5bbb4b7
author: cinap_lenrek <[email protected]>
date: Sun Dec 11 20:16:56 EST 2022

libauth: aand also fix the leak it in the deactivated code

--- a/sys/src/libauth/auth_getkey.c
+++ b/sys/src/libauth/auth_getkey.c
@@ -23,6 +23,7 @@
 	}
 if(0)	if(d->type != '/'){
 		werrstr("auth_getkey: /factotum may be bad: didn't get key %s", params);
+		free(d);
 		return -1;
 	}
 	free(d);