Skip to content

Commit

Permalink
Removed pointer for regex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
cogutvalera committed Oct 27, 2018
1 parent 4489648 commit edd6fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>& cli_commands()
Expand Down

0 comments on commit edd6fa8

Please sign in to comment.