1180 static int
1181 py_netsnmp_attr_set_string(PyObject *obj, char *attr_name,
1182 char *val, size_t len)
1183 {
1184 int ret = -1;
1185 if (obj && attr_name) {
taking True path
1186 PyObject* val_obj = (val ?
1187 Py_BuildValue("s#", val, len) :
when taking True path
when Py_BuildValue() fails
1188 Py_BuildValue(""));
1189 ret = PyObject_SetAttrString(obj, attr_name, val_obj);
when treating unknown char * from netsnmp/client_intf.c:1181 as non-NULL
when PyObject_SetAttrString() succeeds
1190 Py_DECREF(val_obj);
dereferencing NULL (val_obj->ob_refcnt) at netsnmp/client_intf.c:1190
found 3 similar trace(s) to this
1191 }
1192 return ret;
1193 }