File: adnsmodule.c
Function: _new_constant_class
Error: ob_refcnt of '*d' is 1 too high
1048 static int
1049 _new_constant_class(
1050 	PyObject *mdict,
1051 	char *type,
1052 	_constant_class *table
1053 	)
1054 {
1055 	PyObject *d, *c, *v;
1056 	int i;
1057 	/* XXX This leaks memory if it fails, but then the whole module
1058 	   fails to import, so probably no big deal */
1059 	if (!(d = PyDict_New())) goto error;
when PyDict_New() succeeds
taking False path
PyDictObject allocated at: 	if (!(d = PyDict_New())) goto error;
ob_refcnt is now refs: 1 + N where N >= 0
1060 	for (i = 0; table[i].name; i++) {
when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL
when treating unknown char * from adnsmodule.c:1060 as NULL
taking False path
1061 		if (!(v = PyInt_FromLong((long)table[i].value))) goto error;
1062 		if (PyDict_SetItemString(d, table[i].name, v)) goto error;
1063 	}
1064 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
when treating unknown char * from adnsmodule.c:1051 as non-NULL
when PyString_InternFromString() fails
when PyClass_New() succeeds
taking False path
1065 	if (PyDict_SetItemString(mdict, type, c)) goto error;
when PyDict_SetItemString() succeeds
taking False path
1066 	return 0;
1067   error:
1068 	Py_XDECREF(d);
1069 	return -1;
1070 }
ob_refcnt of '*d' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 3 similar trace(s) to this

File: adnsmodule.c
Function: _new_constant_class
Error: ob_refcnt of '*c' is 1 too high
1048 static int
1049 _new_constant_class(
1050 	PyObject *mdict,
1051 	char *type,
1052 	_constant_class *table
1053 	)
1054 {
1055 	PyObject *d, *c, *v;
1056 	int i;
1057 	/* XXX This leaks memory if it fails, but then the whole module
1058 	   fails to import, so probably no big deal */
1059 	if (!(d = PyDict_New())) goto error;
when PyDict_New() succeeds
taking False path
1060 	for (i = 0; table[i].name; i++) {
when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL
when treating unknown char * from adnsmodule.c:1060 as NULL
taking False path
1061 		if (!(v = PyInt_FromLong((long)table[i].value))) goto error;
1062 		if (PyDict_SetItemString(d, table[i].name, v)) goto error;
1063 	}
1064 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
when treating unknown char * from adnsmodule.c:1051 as non-NULL
when PyString_InternFromString() fails
when PyClass_New() succeeds
taking False path
new ref from (unknown) PyClass_New allocated at: 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
ob_refcnt is now refs: 1 + N where N >= 0
1065 	if (PyDict_SetItemString(mdict, type, c)) goto error;
when PyDict_SetItemString() succeeds
taking False path
ob_refcnt is now refs: 1 + N where N >= 1
1066 	return 0;
1067   error:
1068 	Py_XDECREF(d);
1069 	return -1;
1070 }
ob_refcnt of '*c' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 11 similar trace(s) to this

File: adnsmodule.c
Function: _new_constant_class
Error: ob_refcnt of PyStringObject is 1 too high
1048 static int
1049 _new_constant_class(
1050 	PyObject *mdict,
1051 	char *type,
1052 	_constant_class *table
1053 	)
1054 {
1055 	PyObject *d, *c, *v;
1056 	int i;
1057 	/* XXX This leaks memory if it fails, but then the whole module
1058 	   fails to import, so probably no big deal */
1059 	if (!(d = PyDict_New())) goto error;
when PyDict_New() succeeds
taking False path
1060 	for (i = 0; table[i].name; i++) {
when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL
when treating unknown char * from adnsmodule.c:1060 as NULL
taking False path
1061 		if (!(v = PyInt_FromLong((long)table[i].value))) goto error;
1062 		if (PyDict_SetItemString(d, table[i].name, v)) goto error;
1063 	}
1064 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
when treating unknown char * from adnsmodule.c:1051 as non-NULL
when PyString_InternFromString() succeeds
when PyClass_New() succeeds
taking False path
PyStringObject allocated at: 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
ob_refcnt is now refs: 1 + N where N >= 0
1065 	if (PyDict_SetItemString(mdict, type, c)) goto error;
when PyDict_SetItemString() succeeds
taking False path
1066 	return 0;
1067   error:
1068 	Py_XDECREF(d);
1069 	return -1;
1070 }
ob_refcnt of PyStringObject is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 9 similar trace(s) to this

File: adnsmodule.c
Function: _new_constant_class
Error: ob_refcnt of '*v' is 1 too high
1048 static int
1049 _new_constant_class(
1050 	PyObject *mdict,
1051 	char *type,
1052 	_constant_class *table
1053 	)
1054 {
1055 	PyObject *d, *c, *v;
1056 	int i;
1057 	/* XXX This leaks memory if it fails, but then the whole module
1058 	   fails to import, so probably no big deal */
1059 	if (!(d = PyDict_New())) goto error;
when PyDict_New() succeeds
taking False path
1060 	for (i = 0; table[i].name; i++) {
when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL
when treating unknown char * from adnsmodule.c:1060 as non-NULL
taking True path
when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL
when treating unknown char * from adnsmodule.c:1060 as NULL
taking False path
1061 		if (!(v = PyInt_FromLong((long)table[i].value))) goto error;
when treating unknown struct _constant_class * from adnsmodule.c:1061 as non-NULL
when PyInt_FromLong() succeeds
taking False path
PyIntObject allocated at: 		if (!(v = PyInt_FromLong((long)table[i].value))) goto error;
ob_refcnt is now refs: 1 + N where N >= 0
1062 		if (PyDict_SetItemString(d, table[i].name, v)) goto error;
when treating unknown struct _constant_class * from adnsmodule.c:1062 as non-NULL
when treating unknown char * from adnsmodule.c:1062 as non-NULL
when PyDict_SetItemString() succeeds
taking False path
ob_refcnt is now refs: 1 + N where N >= 1
1063 	}
1064 	if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error;
when treating unknown char * from adnsmodule.c:1051 as non-NULL
when PyString_InternFromString() succeeds
when PyClass_New() succeeds
taking False path
1065 	if (PyDict_SetItemString(mdict, type, c)) goto error;
when PyDict_SetItemString() succeeds
taking False path
1066 	return 0;
1067   error:
1068 	Py_XDECREF(d);
1069 	return -1;
1070 }
ob_refcnt of '*v' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 11 similar trace(s) to this