diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-11 21:02:19 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:18 +0200 |
commit | 830a1b8c9e9a26dc1101167ac66a75c444902c4d (patch) | |
tree | c8846c6a98eb81e95d0b4459b146d8075b7f0913 /methods/https.cc | |
parent | ae732225ec2fa0d7434c9f40a92ced8683752211 (diff) |
fix two memory leaks reported by gcc
Reported-By: gcc -fsanitize=address -fno-sanitize=vptr
Git-Dch: Ignore
Diffstat (limited to 'methods/https.cc')
-rw-r--r-- | methods/https.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/https.cc b/methods/https.cc index d2ddf6fcf..432a64303 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -505,9 +505,9 @@ bool HttpsMethod::Configuration(string Message) return true; } /*}}}*/ -ServerState * HttpsMethod::CreateServerState(URI uri) /*{{{*/ +std::unique_ptr<ServerState> HttpsMethod::CreateServerState(URI const &uri)/*{{{*/ { - return new HttpsServerState(uri, this); + return std::unique_ptr<ServerState>(new HttpsServerState(uri, this)); } /*}}}*/ |