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

Fix mismatched free / delete #42

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

falkTX
Copy link

@falkTX falkTX commented Apr 4, 2024

Caught by valgrind, these pointers are allocated with new so they need to use the matching delete

Valgrind report:

==150781== Mismatched free() / delete / delete []
==150781==    at 0x721DA3F: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==150781==    by 0x1FB7AAD: ~Sync3XL (sync3xl.cpp:624)
==150781==    by 0x1FB7AAD: Sync3XL::~Sync3XL() (sync3xl.cpp:626)
==150781==    by 0x263CC37: rack::app::ModuleWidget::setModule(rack::engine::Module*) (ModuleWidget.cpp:97)
==150781==    by 0x263CC70: rack::app::ModuleWidget::~ModuleWidget() (ModuleWidget.cpp:77)
==150781==    by 0x1FB6AD6: ~Sync3XLWidget (sync3xl.cpp:661)
==150781==    by 0x1FB6AD6: Sync3XLWidget::~Sync3XLWidget() (sync3xl.cpp:661)
==150781==  Address 0x2bbfa8b0 is 0 bytes inside a block of size 16 alloc'd
==150781==    at 0x721CE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==150781==    by 0x1FC3E21: Sync3XL::Sync3XL() (sync3xl.cpp:75)

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

Successfully merging this pull request may close these issues.

1 participant