summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_common
diff options
context:
space:
mode:
authorSiddhartha Mahajan <siddhartha.mahajan8899@mongodb.com>2022-12-02 03:50:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-02 04:53:07 +0000
commitf9c4119beaa802f53a585ab3438d74f0374118b0 (patch)
tree3469bf2ee24e2478220d08cf0d32ff0c0e646e2f /src/third_party/wiredtiger/src/os_common
parente38087c2f34038212f90ee0755960c1bd4f56b79 (diff)
downloadmongo-f9c4119beaa802f53a585ab3438d74f0374118b0.tar.gz
Import wiredtiger: de46cdfc478f223dc97cf0eba04abca30faea598 from branch mongodb-master
ref: 0a21e8ec26..de46cdfc47 for: 6.3.0-rc0 WT-10254 Use wt_overwrite macro.
Diffstat (limited to 'src/third_party/wiredtiger/src/os_common')
-rw-r--r--src/third_party/wiredtiger/src/os_common/os_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/src/os_common/os_alloc.c b/src/third_party/wiredtiger/src/os_common/os_alloc.c
index c50acf9c869..82656601923 100644
--- a/src/third_party/wiredtiger/src/os_common/os_alloc.c
+++ b/src/third_party/wiredtiger/src/os_common/os_alloc.c
@@ -144,8 +144,8 @@ __realloc_func(WT_SESSION_IMPL *session, size_t *bytes_allocated_ret, size_t byt
WT_RET_MSG(session, __wt_errno(), "memory allocation of %" WT_SIZET_FMT " bytes failed",
bytes_to_allocate);
memcpy(p, tmpp, *bytes_allocated_ret);
- memset((uint8_t *)tmpp, WT_DEBUG_BYTE, bytes_allocated);
- free(tmpp);
+ __wt_explicit_overwrite(tmpp, bytes_allocated);
+ __wt_free(session, tmpp);
} else {
if ((p = realloc(p, bytes_to_allocate)) == NULL)
WT_RET_MSG(session, __wt_errno(), "memory allocation of %" WT_SIZET_FMT " bytes failed",