mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 09:57:28 +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. |
||
---|---|---|
.. | ||
COPYRIGHT.txt | ||
THDiskFile.cpp | ||
THDiskFile.h | ||
THFile.cpp | ||
THFile.h | ||
THFilePrivate.h | ||
THGeneral.cpp | ||
THGeneral.h | ||
torch_importer.cpp |