forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgw/rgw_main.cc: reorder framework detection
Fix for: CID 1398896: Resource leak (RESOURCE_LEAK) overwrite_var: Overwriting fe in fe = new RGWLoadGenFrontend(env, config) leaks the storage that fe points to. Do not check again and again for framework if there is already a match, make use of if/else. This should also fix the RESOURCE_LEAK warning. Signed-off-by: Danny Al-Gaaf <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters