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

potential memory leak #34

Open
benadler opened this issue Jul 15, 2021 · 0 comments
Open

potential memory leak #34

benadler opened this issue Jul 15, 2021 · 0 comments

Comments

@benadler
Copy link

My client code calls QHttpEngine::QObjectHandler::registerMethod(...):

Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7f184c417ca1 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99
#1 0x55a2db94726b in registerMethod_functor<HttpServer::HttpServer(...arguments...)::<lambda(QHttpEngine::Socket*)>, void (HttpServer::HttpServer(...arguments...)::<lambda(QHttpEngine::Socket*)>::)(QHttpEngine::Socket) const> /src/include/qhttpengine/qobjecthandler.h:184
#2 0x55a2db94726b in registerMethod<HttpServer::HttpServer(...arguments...)::<lambda(QHttpEngine::Socket*)> > /src/include/qhttpengine/qobjecthandler.h:157
#3 0x55a2db94726b in registerMethod<HttpServer::HttpServer(...arguments...)::<lambda(QHttpEngine::Socket*)> > /src/include/qhttpengine/qobjecthandler.h:142
#4 0x55a2db94726b in main.cpp:250

I deleted my QObjectHandler during shutdown.

I think this is the new QtPrivate::QFunctorSlotObject<Func1, 1, typename SlotType::Arguments, void>(slot) in qobjecthandler.h:184. Where is that new deleted?

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