File: | py_GeoIP.c |
Function: | GeoIP_SetItemFloat |
Error: | calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:217 |
211 void GeoIP_SetItemFloat(PyObject *dict, const char * name, float value) {
212 PyObject * nameObj;
213 PyObject * valueObj;
214 nameObj = Py_BuildValue("s",name);
215 valueObj = Py_BuildValue("f",value);
when Py_BuildValue() succeeds
216 PyDict_SetItem(dict,nameObj,valueObj);
when Py_BuildValue() fails
217 Py_DECREF(nameObj);
calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:217
PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt
218 Py_DECREF(valueObj);
219 }
220
File: | py_GeoIP.c |
Function: | GeoIP_SetItemFloat |
Error: | calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:217 |
211 void GeoIP_SetItemFloat(PyObject *dict, const char * name, float value) {
212 PyObject * nameObj;
213 PyObject * valueObj;
214 nameObj = Py_BuildValue("s",name);
215 valueObj = Py_BuildValue("f",value);
when Py_BuildValue() fails
216 PyDict_SetItem(dict,nameObj,valueObj);
when Py_BuildValue() succeeds
217 Py_DECREF(nameObj);
calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:217
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
218 Py_DECREF(valueObj);
219 }
220