1. bllip
  2. bllip-parser

Commits

David McClosky  committed aa4a4bd

first-stage/PARSE: Add two deletes when handling failure trees.

  • Participants
  • Parent commits 2b06ae6
  • Branches default

Comments (0)

Files changed (2)

File first-stage/PARSE/parseIt.C

View file
     }
   st->subTrees()=its;
   t=s1;
+  delete chart;
 }
 
 //------------------------------

File first-stage/PARSE/swig/wrapper.i

View file
 
                 MeChart* chart = new MeChart(*$self, threadSlot.getThreadSlotIndex());
                 if ($self->length() >= MAXSENTLEN) {
+                    delete chart;
                     error("Sentence is too long.");
                 }
                 InputTrees dummy1;