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 crash of double-free of sentence disjuncts #676

Merged
merged 6 commits into from
Feb 17, 2018

Conversation

ampli
Copy link
Member

@ampli ampli commented Feb 17, 2018

See issue #632.

At the same opportunity:

  • Refactor the touched code.
  • Remove unneeded include files from the touched files.
  • Avoid trying to free disjuncts from a fresh sentence.

Use free_sentence_disjuncts().
This happens when the sentence disjuncts/connectors are getting packed
in a parse with null_count>0 that is done in a single call to
classic_parse() (min_null_count=0 and max_null_count>0).
Avoid looping on all words and trying to free their NULL disjuncts.
@linas linas merged commit bf1f974 into opencog:master Feb 17, 2018
@linas
Copy link
Member

linas commented Feb 17, 2018

Thanks!

@ampli ampli deleted the freedisj branch February 21, 2018 16:34
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.

2 participants