File: | duplicity/_librsyncmodule.c |
Function: | moduleinit |
Error: | memory leak: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high |
462 static PyObject *
463 moduleinit(void)
464 {
465 PyObject *m, *d;
466
467 #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 10
468 Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
469 Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
470 #else
471 Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
472 Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
473 #endif
474
475 MOD_DEF(m, "_librsync", "", _librsyncMethods)
when PyModule_Create2() succeeds
476 if (m == NULL)
taking False path
477 return NULL;
478
479 d = PyModule_GetDict(m);
480 librsyncError = PyErr_NewException("_librsync.librsyncError", NULL, NULL);
when PyErr_NewException() succeeds
481 PyDict_SetItemString(d, "librsyncError", librsyncError);
when PyDict_SetItemString() succeeds
482 PyDict_SetItemString(d, "RS_JOB_BLOCKSIZE",
when _Py_BuildValue_SizeT() succeeds
when PyDict_SetItemString() succeeds
new ref from call to _Py_BuildValue_SizeT was allocated at: PyDict_SetItemString(d, "RS_JOB_BLOCKSIZE",
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
483 Py_BuildValue("l", (long)RS_JOB_BLOCKSIZE));
484 PyDict_SetItemString(d, "RS_DEFAULT_BLOCK_LEN",
when _Py_BuildValue_SizeT() succeeds
when PyDict_SetItemString() succeeds
485 Py_BuildValue("l", (long)RS_DEFAULT_BLOCK_LEN));
486
487 return m;
memory leak: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high
was expecting final owned ob_refcnt of new ref from call to _Py_BuildValue_SizeT to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
found 15 similar trace(s) to this
488 }
File: | duplicity/_librsyncmodule.c |
Function: | moduleinit |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.15157) at duplicity/_librsyncmodule.c:484 |
462 static PyObject *
463 moduleinit(void)
464 {
465 PyObject *m, *d;
466
467 #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 10
468 Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
469 Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
470 #else
471 Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
472 Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
473 #endif
474
475 MOD_DEF(m, "_librsync", "", _librsyncMethods)
when PyModule_Create2() succeeds
476 if (m == NULL)
taking False path
477 return NULL;
478
479 d = PyModule_GetDict(m);
480 librsyncError = PyErr_NewException("_librsync.librsyncError", NULL, NULL);
when PyErr_NewException() succeeds
481 PyDict_SetItemString(d, "librsyncError", librsyncError);
when PyDict_SetItemString() succeeds
482 PyDict_SetItemString(d, "RS_JOB_BLOCKSIZE",
when _Py_BuildValue_SizeT() succeeds
when PyDict_SetItemString() succeeds
483 Py_BuildValue("l", (long)RS_JOB_BLOCKSIZE));
484 PyDict_SetItemString(d, "RS_DEFAULT_BLOCK_LEN",
when _Py_BuildValue_SizeT() fails
calling PyDict_SetItemString with NULL as argument 3 (D.15157) at duplicity/_librsyncmodule.c:484
found 3 similar trace(s) to this
485 Py_BuildValue("l", (long)RS_DEFAULT_BLOCK_LEN));
486
487 return m;
488 }
File: | duplicity/_librsyncmodule.c |
Function: | moduleinit |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.15156) at duplicity/_librsyncmodule.c:482 |
462 static PyObject *
463 moduleinit(void)
464 {
465 PyObject *m, *d;
466
467 #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 10
468 Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
469 Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
470 #else
471 Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
472 Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
473 #endif
474
475 MOD_DEF(m, "_librsync", "", _librsyncMethods)
when PyModule_Create2() succeeds
476 if (m == NULL)
taking False path
477 return NULL;
478
479 d = PyModule_GetDict(m);
480 librsyncError = PyErr_NewException("_librsync.librsyncError", NULL, NULL);
when PyErr_NewException() succeeds
481 PyDict_SetItemString(d, "librsyncError", librsyncError);
when PyDict_SetItemString() succeeds
482 PyDict_SetItemString(d, "RS_JOB_BLOCKSIZE",
when _Py_BuildValue_SizeT() fails
calling PyDict_SetItemString with NULL as argument 3 (D.15156) at duplicity/_librsyncmodule.c:482
found 1 similar trace(s) to this
483 Py_BuildValue("l", (long)RS_JOB_BLOCKSIZE));
484 PyDict_SetItemString(d, "RS_DEFAULT_BLOCK_LEN",
485 Py_BuildValue("l", (long)RS_DEFAULT_BLOCK_LEN));
486
487 return m;
488 }
File: | duplicity/_librsyncmodule.c |
Function: | moduleinit |
Error: | calling PyDict_SetItemString with NULL as argument 3 (librsyncError.2) at duplicity/_librsyncmodule.c:481 |
462 static PyObject *
463 moduleinit(void)
464 {
465 PyObject *m, *d;
466
467 #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 10
468 Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
469 Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
470 #else
471 Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
472 Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
473 #endif
474
475 MOD_DEF(m, "_librsync", "", _librsyncMethods)
when PyModule_Create2() succeeds
476 if (m == NULL)
taking False path
477 return NULL;
478
479 d = PyModule_GetDict(m);
480 librsyncError = PyErr_NewException("_librsync.librsyncError", NULL, NULL);
when PyErr_NewException() fails
481 PyDict_SetItemString(d, "librsyncError", librsyncError);
calling PyDict_SetItemString with NULL as argument 3 (librsyncError.2) at duplicity/_librsyncmodule.c:481
482 PyDict_SetItemString(d, "RS_JOB_BLOCKSIZE",
483 Py_BuildValue("l", (long)RS_JOB_BLOCKSIZE));
484 PyDict_SetItemString(d, "RS_DEFAULT_BLOCK_LEN",
485 Py_BuildValue("l", (long)RS_DEFAULT_BLOCK_LEN));
486
487 return m;
488 }