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 memory leak in decode-xml.c #930

Merged
merged 1 commit into from
Sep 27, 2016
Merged

Conversation

bryonglodencissp
Copy link
Contributor

On line no. 298 of 'decode-xml.c' there is a memory leak, which is a bug. Memory is a finite resource within running programs, and failing to free memory means consuming a finite resource without replenishing it. Eventually memory will run out and this program will crash.

Found by https://github.com/bryongloden/cppcheck

[src/analysisd/decoders/decode-xml.c:298]: (error) Memory leak: pi
@ddpbsd ddpbsd merged commit d922d2b into ossec:master Sep 27, 2016
@vikman90 vikman90 mentioned this pull request Dec 21, 2016
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