fix(os): uninit free error

This commit is contained in:
afwerar 2022-05-30 16:55:37 +08:00
parent e223a1f465
commit 35fe6feed6
2 changed files with 6 additions and 6 deletions

View File

@ -26,9 +26,7 @@ if(${BUILD_WINGETOPT})
target_link_libraries(parserTest PUBLIC wingetopt)
endif()
if(NOT TD_WINDOWS)
add_test(
add_test(
NAME parserTest
COMMAND parserTest
)
endif(NOT TD_WINDOWS)
)

View File

@ -242,6 +242,8 @@ class MockCatalogServiceImpl {
info->outputType = outputType;
info->outputLen = outputLen;
info->bufSize = bufSize;
info->pCode = nullptr;
info->pComment = nullptr;
udf_.insert(std::make_pair(func, info));
}