summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-01-14 09:34:49 -0500
committerKeith Bostic <keith@wiredtiger.com>2016-01-14 09:34:49 -0500
commitf2699e8e83ebc5dcb8c751c1393502a29803d396 (patch)
tree3ae5ea0fd7173ba2cb6e2666638f0d6bc54a4682 /bench
parent0ec0695eaad3a67202f12626f5e673c914a77351 (diff)
downloadmongo-f2699e8e83ebc5dcb8c751c1393502a29803d396.tar.gz
WT-2326 - Add dcalloc, dmalloc and dstrdup to wtperf
Replace a couple more strdup calls with dstrdup.
Diffstat (limited to 'bench')
-rw-r--r--bench/wtperf/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/wtperf/config.c b/bench/wtperf/config.c
index 408ff804799..676e4d6f24f 100644
--- a/bench/wtperf/config.c
+++ b/bench/wtperf/config.c
@@ -64,14 +64,14 @@ config_assign(CONFIG *dest, const CONFIG *src)
if (src->uris != NULL) {
dest->uris = dcalloc(src->table_count, sizeof(char *));
for (i = 0; i < src->table_count; i++)
- dest->uris[i] = strdup(src->uris[i]);
+ dest->uris[i] = dstrdup(src->uris[i]);
}
dest->ckptthreads = NULL;
dest->popthreads = NULL;
dest->workers = NULL;
if (src->base_uri != NULL)
- dest->base_uri = strdup(src->base_uri);
+ dest->base_uri = dstrdup(src->base_uri);
if (src->workload != NULL) {
dest->workload = dcalloc(WORKLOAD_MAX, sizeof(WORKLOAD));
memcpy(dest->workload,