diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 46dc129..a95ff2f 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()