rgw: fix memory leak

Remove frontend object on shutdown.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2013-12-16 10:27:07 -08:00
parent a3e50b09a1
commit ef10a5c297

View File

@ -938,6 +938,7 @@ int main(int argc, const char **argv)
for (list<RGWFrontend *>::iterator liter = fes.begin(); liter != fes.end(); ++liter) {
RGWFrontend *fe = *liter;
fe->join();
delete fe;
}
for (list<RGWFrontendConfig *>::iterator liter = configs.begin(); liter != configs.end(); ++liter) {