Skip to content

Commit

Permalink
Fix http server module memory leak. (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Oct 18, 2024
1 parent bb882f9 commit 931580d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/http_task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ void HttpServerTask::handle(int state, int error)
this->target = this->get_target();

// fill module data from request to series
ModuleSeries *series = new ModuleSeries(this);

http_get_header_module_data(req, this->module_data_);
for (auto *module : this->modules_)
{
Expand All @@ -417,6 +415,8 @@ void HttpServerTask::handle(int state, int error)
}
}

ModuleSeries *series = new ModuleSeries(this);

series->set_module_data(this->mutable_module_data());
series->start();
}
Expand Down

0 comments on commit 931580d

Please sign in to comment.