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

Valgrind warnings #300

Open
yamadapc opened this issue Aug 12, 2024 · 0 comments
Open

Valgrind warnings #300

yamadapc opened this issue Aug 12, 2024 · 0 comments

Comments

@yamadapc
Copy link

yamadapc commented Aug 12, 2024

Running a few tests under valgrind produces the following warnings:

Conditional jump or move depends on uninitialised value(s)

time_t lastReaderCheck;

lastReaderCheck has no initialization ; I reckon what it is initialized with is undefined behaviour.

Mismatched free / delete / delete[]

Warning about free call on:

static thread_local std::vector<EnvWrap*>* openEnvWraps;

openEnvWraps is a vector allocated with new on

openEnvWraps = new std::vector<EnvWrap*>;

free won't call the destructor so I think this is leaking memory as the vector internals won't be released.

kriszyp added a commit that referenced this issue Aug 20, 2024
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