File: adnsmodule.c
Function: adns__init
Error: ob_refcnt of '*s' is 1 too high
986 static PyObject *
987 adns__init(
988 	PyObject *self,	/* Not used */
989 	PyObject *args
990 	)
991 {
992 	adns_initflags flags = 0;
993 	int status;
994 	FILE *diagfile = NULL;
995 	char *configtext = NULL;
996 	ADNS_Stateobject *s;
997 
998 	if (!PyArg_ParseTuple(args, "|iO&s",
when PyArg_ParseTuple() succeeds
taking False path
999 			      &flags, _file_converter, &diagfile, &configtext))
1000 		return NULL;
1001 	if (!(s = newADNS_Stateobject())) return NULL;
when newADNS_Stateobject() succeeds
taking False path
new ref from (unknown) newADNS_Stateobject allocated at: 	if (!(s = newADNS_Stateobject())) return NULL;
ob_refcnt is now refs: 1 + N where N >= 0
1002 	if (configtext)
when treating unknown const char * from adnsmodule.c:998 as non-NULL
taking True path
1003 		status = adns_init_strcfg(&s->state, flags,
1004 					  diagfile, configtext);
1005 	else
1006 		status = adns_init(&s->state, flags, diagfile);
1007 	if (status) {
when considering range: -0x80000000 <= value <= -1
taking True path
1008 		PyErr_SetFromErrno(ErrorObject);
PyErr_SetFromErrno()
1009 		ADNS_State_dealloc(s);
1010 		return NULL;
1011 	}
1012 	return (PyObject *) s;
1013 }
ob_refcnt of '*s' 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