Skip to content

Fixing memory leaks issues#4

Open
mrglm wants to merge 1 commit intoperror:masterfrom
mrglm:bugfix
Open

Fixing memory leaks issues#4
mrglm wants to merge 1 commit intoperror:masterfrom
mrglm:bugfix

Conversation

@mrglm
Copy link
Contributor

@mrglm mrglm commented Jan 20, 2020

The program had memory leaks due to :

  • memory allocated by the Capstone API but never freed
  • redundant instruction never freed when already in the hashtable
  • hashtable_delete only freeing the bucket itself and not the elements
    in it
  • output file not being close

The program had memory leaks due to :
- memory allocated by the Capstone API but never freed
- redundant instruction never freed when already in the hashtable
- hashtable_delete only freeing the bucket itself and not the elements
in it
- output file not being close
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