mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 08:49:31 -06:00
fix space leak in PySequence_AsHypos. PyList_FromHypos->PyTuple_FromHypos
This commit is contained in:
@@ -148,7 +148,7 @@ PGF_categoryContext(PGFObject *self, PyObject *args)
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyObject *contexts = PyList_FromHypos(hypos, n_hypos);
|
||||
PyObject *contexts = PyTuple_FromHypos(hypos, n_hypos);
|
||||
|
||||
for (size_t i = 0; i < n_hypos; i++) {
|
||||
free(hypos[i].cid);
|
||||
|
||||
Reference in New Issue
Block a user