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

Avoid freeing base class members in a derived class. #35

Merged
merged 2 commits into from
Aug 2, 2020

Conversation

shinji-s
Copy link
Contributor

@shinji-s shinji-s commented Aug 2, 2020

Freeing of these memory blocks are taken care of in destroy()@action_class_gen.c, aren't they?
Running "codes_parser /home/suzuki/src/eccodes-orig/build/share/eccodes/definitions/bufr/boot.def" complains about 'double free' and dumps core when I call grib_context_reset() on the default context via shared object detachment hook.

@shinji-s
Copy link
Contributor Author

shinji-s commented Aug 2, 2020

Attaching a valgrind log.
valgrind.log

@shahramn shahramn merged commit 670a726 into ecmwf:develop Aug 2, 2020
@shinji-s shinji-s deleted the pr_fix_double_free_darray branch August 10, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants