diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-12 01:14:07 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-12 01:14:07 +0000 |
commit | dc952dad295700a836cf91ec66b1c443e5bbb4b7 (patch) | |
tree | b752fa4a8f0bfc93718624b258941eb09d695ac6 /sys/src/libauth | |
parent | c1b63b53efca6908bd4d9e14da96540e2d0c591a (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.c | 1 |
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); |