mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
pfree tmp key when set principal key
Pushing a principal key to the cache, we copy it to the shared mem. Hence, the palloced tmp version can be freed.
This commit is contained in:
parent
832cbb4f4d
commit
cb80b20a43
@ -361,6 +361,7 @@ set_principal_key_with_keyring(const char *key_name, const char *provider_name,
|
||||
LWLockRelease(lock_files);
|
||||
|
||||
pfree(new_keyring);
|
||||
pfree(new_principal_key);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user