mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 16:43:17 -06:00
fix space leak in PySequence_AsHypos. PyList_FromHypos->PyTuple_FromHypos
This commit is contained in:
1 parent
0eb6e9f724
commit
0e98c30973
5 files changed
+28
-40
No files matched your search
@@ -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