mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
Merge pull request #21522 from yuwata/home-fix-memleak
home: fix memleak
This commit is contained in:
commit
f1da1e7b5f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user