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 a memory leak in BufferedWriter #65

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Fix a memory leak in BufferedWriter #65

merged 1 commit into from
Mar 15, 2021

Conversation

vitaut
Copy link
Contributor

@vitaut vitaut commented Mar 15, 2021

Fix a memory leak in BufferedWriter:

==2983106==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0xa6f3af in malloc
    #1 0x9b9134 in XXH_malloc .../xxHash/xxhash.h:755
    #2 0x9bc08d in XXH64_createState .../xxHash/xxhash.h:1689
    #3 0x44bb71 in BufferedWriter::BufferedWriter(_IO_FILE*) .../BuildEvents.cpp:443
    ...

which is caused by missing XXH64_freeState.

@aras-p aras-p merged commit bba6db7 into aras-p:master Mar 15, 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

Successfully merging this pull request may close these issues.

None yet

2 participants