summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-09-11 21:02:19 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-09-14 15:22:18 +0200
commit830a1b8c9e9a26dc1101167ac66a75c444902c4d (patch)
treec8846c6a98eb81e95d0b4459b146d8075b7f0913 /methods/http.cc
parentae732225ec2fa0d7434c9f40a92ced8683752211 (diff)
fix two memory leaks reported by gcc
Reported-By: gcc -fsanitize=address -fno-sanitize=vptr Git-Dch: Ignore
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc
index ce697a338..78b20e66d 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -778,9 +778,9 @@ bool HttpMethod::Configuration(string Message)
return true;
}
/*}}}*/
-ServerState * HttpMethod::CreateServerState(URI uri) /*{{{*/
+std::unique_ptr<ServerState> HttpMethod::CreateServerState(URI const &uri)/*{{{*/
{
- return new HttpServerState(uri, this);
+ return std::unique_ptr<ServerState>(new HttpServerState(uri, this));
}
/*}}}*/
void HttpMethod::RotateDNS() /*{{{*/