-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
In WT-9903, a debug mode was added to allocate new memory on every realloc call to realloc_func. In that change, code was added to copy to the new memory, overwrite the old memory and then free it. That code should use the standard wt_overwrite_and_free* family of macros to replace this code:
memset((uint8_t *)tmpp, WT_DEBUG_BYTE, bytes_allocated); free(tmpp);