]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework: fix memleak 21522/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Nov 2021 15:14:29 +0000 (00:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Nov 2021 15:14:32 +0000 (00:14 +0900)
Fixes #21521.

src/home/homework-password-cache.c

index 1133ab24b829814d8934ff63f4db58191fe1f9f3..00a0f69bc91fe37c065da932529623d34afaff23 100644 (file)
@@ -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) {