-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Storage Engines
-
StorEng - Refinement Pipeline
Currently inside wiredtiger there are 69 free functions that do not properly clear the pointer that gets passed in. Follow WT-13451 for an example. The problem is that the free functions doesn't take in a double pointer. In the general case, this is okay and does not have any faults with regards to correctness issues. The function does not adhere to the pattern of the free function where the pointer should be cleared. The free function would do a copy-by-value of the pointer that is passed in. The __wt_free would only set the copy-by-value pointer to NULL and not the original pointer.
This ticket involves investigating the remaining wiredtiger functions and properly fixing the ones that do not clear the original pointer. If the work in this ticket is too much please break it up into multiple tickets.