Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global configuration (g_DebugConfig) is leaked. #183

Open
ismail-yilmaz opened this issue Mar 4, 2021 · 0 comments
Open

Global configuration (g_DebugConfig) is leaked. #183

ismail-yilmaz opened this issue Mar 4, 2021 · 0 comments

Comments

@ismail-yilmaz
Copy link

ismail-yilmaz commented Mar 4, 2021

Hi,

Thank you for developing this library.

I've been trying to compile and link winpty library statically, using CLANG, for our C++ framework. (I can confirm that it works with very trivial modifications, by the way.)

There is only one issue we have encountered so far: a memory leak that is happening consistently at every exit of our app. Upon a closer examination we have noticed that the global debug configuration variable g_debugConfig (declared in DebugClient.cc) is leaking, since the last instance of it is never actually freed. (see GetDebugConfig())

Leaked variable:

void *volatile g_debugConfig;

@ismail-yilmaz ismail-yilmaz changed the title Global configuration (g_GlobalConfig) is leaked. Global configuration (g_DebugConfig) is leaked. Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant