summaryrefslogtreecommitdiff
path: root/sys/src/libauth
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-12-12 01:14:07 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-12-12 01:14:07 +0000
commitdc952dad295700a836cf91ec66b1c443e5bbb4b7 (patch)
treeb752fa4a8f0bfc93718624b258941eb09d695ac6 /sys/src/libauth
parentc1b63b53efca6908bd4d9e14da96540e2d0c591a (diff)
libauth: Fix a memory leak in auth_getkey (thanks josiah fentsos)
Diffstat (limited to 'sys/src/libauth')
-rw-r--r--sys/src/libauth/auth_getkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/libauth/auth_getkey.c b/sys/src/libauth/auth_getkey.c
index 0ae28b1e4..7d510c4b4 100644
--- a/sys/src/libauth/auth_getkey.c
+++ b/sys/src/libauth/auth_getkey.c
@@ -25,6 +25,7 @@ if(0) if(d->type != '/'){
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);