1
0
forked from GitHub/gf-core

Missed one 'free'

This commit is contained in:
John J. Camilleri
2021-09-24 16:13:36 +02:00
parent a2e4e74644
commit a46b91fe10

View File

@@ -19,7 +19,7 @@ PgfExnType handleError(PgfExn err)
PyErr_SetFromErrnoWithFilename(PyExc_IOError, err.msg);
} else if (err.type == PGF_EXN_PGF_ERROR) {
PyErr_SetString(PGFError, err.msg);
free((char*) err.msg);
free((char *)err.msg);
} else if (err.type == PGF_EXN_OTHER_ERROR) {
PyErr_SetString(PGFError, "an unknown error occured");
}
@@ -452,7 +452,7 @@ match_type(PgfMarshaller *this, PgfUnmarshaller *u, PgfType ty)
free(hypos[i].cid);
Py_DECREF(hypos[i].type);
}
free(cat);
FreePgfText(cat);
return res;
}