Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix a memory corruption #6

Merged
merged 9 commits into from
Mar 12, 2014
Merged

Fix a memory corruption #6

merged 9 commits into from
Mar 12, 2014

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented Mar 12, 2014

Fixes #5.

Otherwise when onig_new failed we would get a non-NULL pointer and
onig_free would try to free it in destructor.
Previously the condition to use cache is never met.
Conflicts:
	src/onig-reg-exp.cc
	src/onig-result.cc
	src/onig-scanner.cc
zcbenz added a commit that referenced this pull request Mar 12, 2014
@zcbenz zcbenz merged commit fb36c7a into master Mar 12, 2014
@zcbenz zcbenz deleted the lint-and-bug branch March 12, 2014 08:01
@kevinsawicki kevinsawicki mentioned this pull request Mar 21, 2014
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash
2 participants