8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 04:03:03 +01:00

Fixed CORE-4869: Segfault when cleaning metadata cache

This commit is contained in:
alexpeshkoff 2015-07-09 17:21:08 +00:00
parent 00ea12de4f
commit 9474a22cd5

View File

@ -559,8 +559,11 @@ void MET_clear_cache(thread_db* tdbb)
{
MET_release_procedure_request(tdbb, procedure);
LCK_release(tdbb, procedure->prc_existence_lock);
procedure->prc_existence_lock = NULL;
if (procedure->prc_existence_lock)
{
LCK_release(tdbb, procedure->prc_existence_lock);
procedure->prc_existence_lock = NULL;
}
procedure->prc_flags |= PRC_obsolete;
}
// Leave it in state 0 to avoid extra pass next time to clear it