mirror of
https://github.com/ceph/ceph
synced 2024-12-26 05:25:09 +00:00
rgw: fix memory leak
Remove frontend object on shutdown. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
a3e50b09a1
commit
ef10a5c297
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user