mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 22:39:31 -06:00
Add FreeHypos function. Remove old Python 2 preproc definition
This commit is contained in:
@@ -205,12 +205,9 @@ Transaction_createCategory(TransactionObject *self, PyObject *args)
|
||||
pgf_create_category(self->pgf->db, self->revision, catname, n_hypos, context, prob, &marshaller, &err);
|
||||
|
||||
FreePgfText(catname);
|
||||
for (Py_ssize_t i = 0; i < n_hypos; i++) {
|
||||
FreePgfText(context[i].cid);
|
||||
}
|
||||
PyMem_Free(context);
|
||||
FreeHypos(context, n_hypos);
|
||||
|
||||
if (handleError(err) != PGF_EXN_NONE) {
|
||||
if (handleError(err) != PGF_EXN_NONE) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user