diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2022-04-29 05:16:48 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-04-29 05:26:24 +0200 |
commit | 3e26b3a6eebcee27be177207cc0846fb844b7a56 (patch) | |
tree | e0acf20e23056daa3b48b8cd0964a2c0b5ca5bbe /sk-usbhid.c | |
parent | upstream: fix memleak on session-bind path; from Pedro Martelletto, ok (diff) | |
download | openssh-3e26b3a6eebcee27be177207cc0846fb844b7a56.tar.xz openssh-3e26b3a6eebcee27be177207cc0846fb844b7a56.zip |
upstream: Don't leak SK device. Patch from Pedro Martelletto via
github PR#316. ok djm@
OpenBSD-Commit-ID: 17d11327545022e727d95fd08b213171c5a4585d
Diffstat (limited to 'sk-usbhid.c')
-rw-r--r-- | sk-usbhid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c index 2d36ac337..2d58c7836 100644 --- a/sk-usbhid.c +++ b/sk-usbhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sk-usbhid.c,v 1.38 2022/02/07 01:25:12 djm Exp $ */ +/* $OpenBSD: sk-usbhid.c,v 1.39 2022/04/29 03:16:48 dtucker Exp $ */ /* * Copyright (c) 2019 Markus Friedl * Copyright (c) 2020 Pedro Martelletto @@ -1393,6 +1393,7 @@ sk_load_resident_keys(const char *pin, struct sk_option **options, freezero(rks[i]->user_id, rks[i]->user_id_len); freezero(rks[i], sizeof(*rks[i])); } + free(device); free(rks); return ret; } |