[SERVER-4303] Command map is not deallocated when server halts Created: 17/Nov/11  Updated: 06/Dec/22  Resolved: 29/Jun/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: DO NOT USE - Backlog - Dev Tools
Resolution: Won't Fix Votes: 0
Labels: memory-leak, move-sa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.04 64 bit


Assigned Teams:
Developer Tools
Participants:

 Description   

The map from command name to command instance (db/commands.cpp) is allocated on the heap but never released. Many of the commands are registered prior to forking which introduces a bit of complexity to managing this resource correctly. This is not a significant leak.



 Comments   
Comment by Mira Carey [ 29/Jun/20 ]

This has been around forever, we seem to be able to live with it and have ASAN to track memory leaks we are concerned about.

Comment by Ian Whalen (Inactive) [ 15/Jun/17 ]

Pretty sure this has already been fixed or it'd be failing in the ASAN builder?

Comment by Eliot Horowitz (Inactive) [ 20/Nov/11 ]

The bigger change we need to make is not putting those in the client library.

Generated at Thu Feb 08 03:05:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.