gs_dump free AH->ropt->dbname

This commit is contained in:
wuyuechuan
2024-06-03 15:21:34 +08:00
committed by yaoxin
parent 79ed677713
commit 19fe6c6155

View File

@ -834,6 +834,10 @@ static void _CloseArchive(ArchiveHandle* AH)
RestoreArchive((Archive*)AH);
if (AH->ropt != NULL) {
if (AH->ropt->dbname) {
free(AH->ropt->dbname);
AH->ropt->dbname = NULL;
}
free(AH->ropt);
AH->ropt = NULL;
}