From: Yu Watanabe Date: Thu, 25 Nov 2021 15:14:29 +0000 (+0900) Subject: homework: fix memleak X-Git-Tag: v250-rc1~148^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F21522%2Fhead;p=thirdparty%2Fsystemd.git homework: fix memleak Fixes #21521. --- diff --git a/src/home/homework-password-cache.c b/src/home/homework-password-cache.c index 1133ab24b82..00a0f69bc91 100644 --- a/src/home/homework-password-cache.c +++ b/src/home/homework-password-cache.c @@ -11,6 +11,7 @@ void password_cache_free(PasswordCache *cache) { cache->pkcs11_passwords = strv_free_erase(cache->pkcs11_passwords); cache->fido2_passwords = strv_free_erase(cache->fido2_passwords); + cache->keyring_passswords = strv_free_erase(cache->keyring_passswords); } void password_cache_load_keyring(UserRecord *h, PasswordCache *cache) {