mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
![]() In the previous code, there was a memory leak issue where the previously allocated memory was not freed upon a failed realloc operation. This commit addresses the problem by releasing the old memory before setting the pointer to NULL in case of a realloc failure. This ensures that memory is properly managed and avoids potential memory leaks. |
||
---|---|---|
.. | ||
cmake | ||
include/opencv2 | ||
misc | ||
perf | ||
src | ||
test | ||
CMakeLists.txt |