364 static ResQuery *Asyncns_res_query(Asyncns *self, PyObject *args, PyObject *kwds)
365 {
366 const char *dname = NULL;
367 ns_class c;
368 ns_type t;
369 static char *kwlist[] = {"dname", "class", "type", NULL};
370 if(!PyArg_ParseTupleAndKeywords(args, kwds, "sii", kwlist, &dname, &c, &t))
371 {
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
372 /* exception is set by PyArg_ParseTupleAndKeywords */
373 return NULL;
374 }
375 ResQuery *q = (ResQuery *)PyObject_MyNew(ResQuery_type);
376
when call fails
377 Query_store_asyncns(&q->query, self,
378 asyncns_res_query(self->asyncns, dname, c, t));
dereferencing NULL (q->query) at asyncns.c:378
379 asyncns_add_query(self, (Query*)q);
380 return q;
381 }
382