mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 23:51:16 +08:00
core: fix issues from valgrind builder
This commit is contained in:
parent
954969dd74
commit
c26dd5d7aa
@ -87,15 +87,18 @@ cv::String join(const cv::String& base, const cv::String& path)
|
|||||||
|
|
||||||
cv::String canonical(const cv::String& path)
|
cv::String canonical(const cv::String& path)
|
||||||
{
|
{
|
||||||
|
cv::String result;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
const char* result = _fullpath(NULL, path.c_str(), 0);
|
const char* result_str = _fullpath(NULL, path.c_str(), 0);
|
||||||
#else
|
#else
|
||||||
const char* result = realpath(path.c_str(), NULL);
|
const char* result_str = realpath(path.c_str(), NULL);
|
||||||
#endif
|
#endif
|
||||||
if (result)
|
if (result_str)
|
||||||
return cv::String(result);
|
{
|
||||||
// no error handling, just return input
|
result = cv::String(result_str);
|
||||||
return path;
|
free((void*)result_str);
|
||||||
|
}
|
||||||
|
return result.empty() ? path : result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,6 +134,13 @@
|
|||||||
fun:_ZNK2cv7TLSDataINS_11CoreTLSDataEE18createDataInstanceEv
|
fun:_ZNK2cv7TLSDataINS_11CoreTLSDataEE18createDataInstanceEv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
OpenCV-UMatDataAutoLockerTLS
|
||||||
|
Memcheck:Leak
|
||||||
|
...
|
||||||
|
fun:_ZN2cvL21getUMatDataAutoLockerEv
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
OpenCV-haveOpenCL
|
OpenCV-haveOpenCL
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
|
Loading…
Reference in New Issue
Block a user