summaryrefslogtreecommitdiff
path: root/src/modules/m_remoteinclude.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_remoteinclude.cpp')
-rw-r--r--src/modules/m_remoteinclude.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_remoteinclude.cpp b/src/modules/m_remoteinclude.cpp
index 3ad9b7ef2..d385e194e 100644
--- a/src/modules/m_remoteinclude.cpp
+++ b/src/modules/m_remoteinclude.cpp
@@ -94,8 +94,10 @@ class ModuleRemoteInclude : public Module
{
ServerInstance->Log(DEBUG,"Claiming schema http://, making fetch request");
- HTTPClientRequest req(ServerInstance, this, target, name);
- req.Send();
+ HTTPClientRequest* req = new HTTPClientRequest(ServerInstance, this, target, name);
+ req->Send();
+
+ /* XXX: We should delete req when the request is complete */
assoc[name] = new std::stringstream();
delete filedata;