修复一个内存泄漏问题

This commit is contained in:
wangfeihuo
2024-09-25 16:11:39 +08:00
parent b78d3cea15
commit caefe8e180

View File

@ -6031,6 +6031,8 @@ void pushErrorData(ErrorData *edata)
errorDataArea->sqlErrorDataList = lappend(errorDataArea->sqlErrorDataList, dolphinErrorData);
errorDataArea->current_edata_count++;
errorDataArea->current_edata_count_by_level[errorLevelToDolphin(edata->elevel)]++;
pfree_ext(class_origin);
pfree_ext(subclass_origin);
}
}
MemoryContextSwitchTo(oldcontext);