|
|
@@ -1452,7 +1452,7 @@ init_tokenizer(void) |
|
|
|
Py_DECREF(htmlentitydefs); |
|
|
|
|
|
|
|
unsigned numdefs = (unsigned) PyDict_Size(defmap); |
|
|
|
entitydefs = malloc(numdefs * sizeof(char*)); |
|
|
|
entitydefs = calloc(numdefs + 1, sizeof(char*)); |
|
|
|
PyObject* deflist = PyDict_Keys(defmap); |
|
|
|
if (!deflist) return; |
|
|
|
Py_DECREF(defmap); |
|
|
|