summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-04-01 08:44:25 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-04-01 08:44:25 -0400
commitca04aafcd12b00e8821edea09b635de2c1efadb9 (patch)
treedfb2aadc121f64d1ee88dd92807e5c5191108616
parentd2f5a34263ee812615d76172abbcc4d60f230ff4 (diff)
downloadmongo-ca04aafcd12b00e8821edea09b635de2c1efadb9.tar.gz
WT-2525: in-memory configurations: miscellaneous cleanups
Coverity 1353727: va_copy() missing the va_end() call.
-rw-r--r--src/os_common/os_fs_inmemory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_common/os_fs_inmemory.c b/src/os_common/os_fs_inmemory.c
index 0d25fcaf7c3..5b9c849d225 100644
--- a/src/os_common/os_fs_inmemory.c
+++ b/src/os_common/os_fs_inmemory.c
@@ -243,6 +243,7 @@ __im_handle_printf(
for (;;) {
va_copy(ap_copy, ap);
len = (size_t)vsnprintf(tmp->mem, tmp->memsize, fmt, ap_copy);
+ va_end(ap_copy);
if (len < tmp->memsize) {
tmp->data = tmp->mem;
tmp->size = len;