File: | /tmp/pyrefcon/scipy/scipy/integrate/_quadpackmodule.c |
Warning: | line 33, column 9 PyObject ownership leak with reference count of 1 |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* | |||
2 | From Multipack project | |||
3 | */ | |||
4 | #include "__quadpack.h" | |||
5 | ||||
6 | static struct PyMethodDef quadpack_module_methods[] = { | |||
7 | {"_qagse", quadpack_qagse, METH_VARARGS0x0001, doc_qagse}, | |||
8 | {"_qagie", quadpack_qagie, METH_VARARGS0x0001, doc_qagie}, | |||
9 | {"_qagpe", quadpack_qagpe, METH_VARARGS0x0001, doc_qagpe}, | |||
10 | {"_qawoe", quadpack_qawoe, METH_VARARGS0x0001, doc_qawoe}, | |||
11 | {"_qawfe", quadpack_qawfe, METH_VARARGS0x0001, doc_qawfe}, | |||
12 | {"_qawse", quadpack_qawse, METH_VARARGS0x0001, doc_qawse}, | |||
13 | {"_qawce", quadpack_qawce, METH_VARARGS0x0001, doc_qawce}, | |||
14 | {NULL((void*)0), NULL((void*)0), 0, NULL((void*)0)} | |||
15 | }; | |||
16 | ||||
17 | static struct PyModuleDef moduledef = { | |||
18 | PyModuleDef_HEAD_INIT{ { 1, ((void*)0) }, ((void*)0), 0, ((void*)0), }, | |||
19 | "_quadpack", | |||
20 | NULL((void*)0), | |||
21 | -1, | |||
22 | quadpack_module_methods, | |||
23 | NULL((void*)0), | |||
24 | NULL((void*)0), | |||
25 | NULL((void*)0), | |||
26 | NULL((void*)0) | |||
27 | }; | |||
28 | ||||
29 | PyObject *PyInit__quadpack(void) | |||
30 | { | |||
31 | PyObject *m, *d, *s; | |||
32 | ||||
33 | m = PyModule_Create(&moduledef)PyModule_Create2(&moduledef, 1013); | |||
| ||||
| ||||
34 | import_array(){if (_import_array() < 0) {PyErr_Print(); PyErr_SetString( PyExc_ImportError, "numpy.core.multiarray failed to import"); return ((void*)0); } }; | |||
35 | d = PyModule_GetDict(m); | |||
36 | ||||
37 | s = PyUnicode_FromString(" 1.13 "); | |||
38 | PyDict_SetItemString(d, "__version__", s); | |||
39 | quadpack_error = PyErr_NewException ("quadpack.error", NULL((void*)0), NULL((void*)0)); | |||
40 | Py_DECREF(s)_Py_DECREF(((PyObject*)(s))); | |||
41 | PyDict_SetItemString(d, "error", quadpack_error); | |||
42 | if (PyErr_Occurred()) { | |||
43 | Py_FatalError("can't initialize module quadpack"); | |||
44 | } | |||
45 | return m; | |||
46 | } |
1 | #ifndef PyModule_Create2 |
2 | struct _object; |
3 | typedef struct _object PyObject; |
4 | PyObject* clang_analyzer_PyObject_New_Reference(); |
5 | PyObject* PyModule_Create2(PyModuleDef *def, int module_api_version) { |
6 | return clang_analyzer_PyObject_New_Reference(); |
7 | } |
8 | #else |
9 | #warning "API PyModule_Create2 is defined as a macro." |
10 | #endif |