This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new b83c795e52 CID 1534744: txn_box: Move config object insetad of copy. 
(#11249)
b83c795e52 is described below

commit b83c795e52b3643e235861530a2c470ec0bc05d7
Author: Damian Meden <[email protected]>
AuthorDate: Mon Apr 15 10:04:02 2024 +0200

    CID 1534744: txn_box: Move config object insetad of copy. (#11249)
---
 plugins/experimental/txn_box/plugin/src/txn_box_remap.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/txn_box/plugin/src/txn_box_remap.cc 
b/plugins/experimental/txn_box/plugin/src/txn_box_remap.cc
index f3747adf52..b866c5e6ab 100644
--- a/plugins/experimental/txn_box/plugin/src/txn_box_remap.cc
+++ b/plugins/experimental/txn_box/plugin/src/txn_box_remap.cc
@@ -112,7 +112,7 @@ TSRemapNewInstance(int argc, char *argv[], void **ih, char 
*errbuff, int errbuff
   }
 
   G._remap_ctx_storage_required += cfg->reserved_ctx_storage_size();
-  *ih                            = new RemapContext{cfg};
+  *ih                            = new RemapContext{std::move(cfg)};
   return TS_SUCCESS;
 }
 

Reply via email to