File: | py_GeoIP.c |
Function: | GeoIP_SetItemString |
Error: | calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:207 |
201 void GeoIP_SetItemString(PyObject *dict, const char * name, const char * value) {
202 PyObject * nameObj;
203 PyObject * valueObj;
204 nameObj = Py_BuildValue("s",name);
205 valueObj = Py_BuildValue("s",value);
when Py_BuildValue() succeeds
206 PyDict_SetItem(dict,nameObj,valueObj);
when Py_BuildValue() fails
207 Py_DECREF(nameObj);
calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:207
PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt
208 Py_DECREF(valueObj);
209 }
210
File: | py_GeoIP.c |
Function: | GeoIP_SetItemString |
Error: | calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:207 |
201 void GeoIP_SetItemString(PyObject *dict, const char * name, const char * value) {
202 PyObject * nameObj;
203 PyObject * valueObj;
204 nameObj = Py_BuildValue("s",name);
205 valueObj = Py_BuildValue("s",value);
when Py_BuildValue() fails
206 PyDict_SetItem(dict,nameObj,valueObj);
when Py_BuildValue() succeeds
207 Py_DECREF(nameObj);
calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:207
PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type
found 1 similar trace(s) to this
208 Py_DECREF(valueObj);
209 }
210