From edd6fa8dede0ce21719627808be9f7680dfa03e4 Mon Sep 17 00:00:00 2001 From: Valera Cogut Date: Sat, 27 Oct 2018 19:06:24 +0300 Subject: [PATCH] Removed pointer for regex expression --- src/rpc/cli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 46dc129c5..a95ff2f10 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -20,8 +20,8 @@ namespace fc { namespace rpc { static boost::regex& cli_regex_secret() { - static boost::regex* regex_expr = new boost::regex(); - return *regex_expr; + static boost::regex regex_expr; + return regex_expr; } static std::vector& cli_commands()