shithub: riscv

Download patch

ref: d6bb01da76a0b2ac2887e9b68f6d98126a5feb43
parent: ca47fef0061954cda2355cc10dba774d6567051e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jan 21 19:42:13 EST 2017

factotum: fix memory leak in findkey()

--- a/sys/src/cmd/auth/factotum/util.c
+++ b/sys/src/cmd/auth/factotum/util.c
@@ -419,6 +419,8 @@
 				case -1:
 					qunlock(ring);
 					_freeattr(attr1);
+					_freeattr(attr2);
+					_freeattr(attr3);
 					return RpcConfirm;
 				case 0:
 					continue;