!3833 修复节点未释放导致mem_Leak问题

Merge pull request !3833 from duzhuolin/bugfix3
This commit is contained in:
opengauss_bot
2023-07-26 01:52:47 +00:00
committed by Gitee

View File

@ -7289,6 +7289,7 @@ static void DropAllRecoverySlotForPitr()
List *all_archive_slots = NIL;
all_archive_slots = GetAllRecoverySlotsName();
if (all_archive_slots == NIL || all_archive_slots->length == 0) {
list_free_deep(all_archive_slots);
return;
}