Merge pull request #21522 from yuwata/home-fix-memleak

home: fix memleak
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-11-25 20:22:23 +01:00
committed by GitHub
+2 -1
View File
@@ -11,12 +11,13 @@ 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) {
_cleanup_(erase_and_freep) void *p = NULL;
_cleanup_free_ char *name = NULL;
char **strv = NULL;
char **strv;
key_serial_t serial;
size_t sz;
int r;