-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Storage Engines - Transactions
-
None
-
None
In bt_page.c, __page_init_delta_leaf_merge_state function. We have the code:
```
WT_RET(__wt_scr_alloc(session, 0, &s[i].current_key));
WT_RET(__wt_calloc_one(session, &s[i].unpack));
```
If __wt_scr_alloc succeeds and __wt_calloc_one fails, we return without freeing allocated memory. We should add an err block to catch and free any allocated memory.
Coverity:
The system resource will not be reclaimed and reused, reducing the future availability of the resource. Leak of memory or pointers to system resources
/src/btree/bt_page.c:630: RESOURCE_LEAK 184042 Variable "s" going out of scope leaks the storage it points to.