fix(os): uninit free error
This commit is contained in:
parent
e223a1f465
commit
35fe6feed6
|
@ -26,9 +26,7 @@ if(${BUILD_WINGETOPT})
|
||||||
target_link_libraries(parserTest PUBLIC wingetopt)
|
target_link_libraries(parserTest PUBLIC wingetopt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TD_WINDOWS)
|
add_test(
|
||||||
add_test(
|
NAME parserTest
|
||||||
NAME parserTest
|
COMMAND parserTest
|
||||||
COMMAND parserTest
|
)
|
||||||
)
|
|
||||||
endif(NOT TD_WINDOWS)
|
|
||||||
|
|
|
@ -242,6 +242,8 @@ class MockCatalogServiceImpl {
|
||||||
info->outputType = outputType;
|
info->outputType = outputType;
|
||||||
info->outputLen = outputLen;
|
info->outputLen = outputLen;
|
||||||
info->bufSize = bufSize;
|
info->bufSize = bufSize;
|
||||||
|
info->pCode = nullptr;
|
||||||
|
info->pComment = nullptr;
|
||||||
udf_.insert(std::make_pair(func, info));
|
udf_.insert(std::make_pair(func, info));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue