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:
Andrew Pogrebnoy 2025-04-16 19:35:53 +03:00 committed by Andrew Pogrebnoi
parent 832cbb4f4d
commit cb80b20a43

View File

@ -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);
}
/*