mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
two memory leaks in the Python bindings
This commit is contained in:
@@ -1788,6 +1788,8 @@ Bracket_repr(BracketObject *self)
|
||||
Py_DECREF(space);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_DECREF(child_str);
|
||||
}
|
||||
|
||||
Py_DECREF(space);
|
||||
@@ -2267,6 +2269,7 @@ Concr_load(ConcrObject* self, PyObject *args)
|
||||
} else {
|
||||
PyErr_SetString(PGFError, "The language cannot be loaded");
|
||||
}
|
||||
gu_pool_free(tmp_pool);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user