microsoft / IIS.ServiceMonitor

An entrypoint process for running IIS in Windows containers
MIT License
126 stars 42 forks source link

Memory leak in IISConfigUtil::FilterEnv #8

Closed pharring closed 6 years ago

pharring commented 6 years ago

The wstring allocated here: https://github.com/Microsoft/IIS.ServiceMonitor/blob/208e504bbc0d2f7b20aac08a9c83e29953639c51/src/ServiceMonitor/IISConfigUtil.cpp#L64 is never delete'd. Suggest using a stack-allocated wstring instead of new.