File: | ../pytdb.c |
Function: | inittdb |
Error: | ob_refcnt of PyIntObject is 1 too high |
560 void inittdb(void)
561 {
562 PyObject *m;
563
564 if (PyType_Ready(&PyTdb) < 0)
565 return;
when PyType_Ready() succeeds
taking False path
566
567 if (PyType_Ready(&PyTdbIterator) < 0)
568 return;
when PyType_Ready() succeeds
taking False path
569
570 m = Py_InitModule3("tdb", tdb_methods, "TDB is a simple key-value database similar to GDBM that supports multiple writers.");
571 if (m == NULL)
when Py_InitModule4_64() succeeds
572 return;
taking False path
573
574 PyModule_AddObject(m, "REPLACE", PyInt_FromLong(TDB_REPLACE));
575 PyModule_AddObject(m, "INSERT", PyInt_FromLong(TDB_INSERT));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
576 PyModule_AddObject(m, "MODIFY", PyInt_FromLong(TDB_MODIFY));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
577
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
578 PyModule_AddObject(m, "DEFAULT", PyInt_FromLong(TDB_DEFAULT));
579 PyModule_AddObject(m, "CLEAR_IF_FIRST", PyInt_FromLong(TDB_CLEAR_IF_FIRST));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
580 PyModule_AddObject(m, "INTERNAL", PyInt_FromLong(TDB_INTERNAL));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
581 PyModule_AddObject(m, "NOLOCK", PyInt_FromLong(TDB_NOLOCK));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
582 PyModule_AddObject(m, "NOMMAP", PyInt_FromLong(TDB_NOMMAP));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
583 PyModule_AddObject(m, "CONVERT", PyInt_FromLong(TDB_CONVERT));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
584 PyModule_AddObject(m, "BIGENDIAN", PyInt_FromLong(TDB_BIGENDIAN));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
585 PyModule_AddObject(m, "NOSYNC", PyInt_FromLong(TDB_NOSYNC));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
586 PyModule_AddObject(m, "SEQNUM", PyInt_FromLong(TDB_SEQNUM));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
587 PyModule_AddObject(m, "VOLATILE", PyInt_FromLong(TDB_VOLATILE));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
588 PyModule_AddObject(m, "ALLOW_NESTING", PyInt_FromLong(TDB_ALLOW_NESTING));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
589 PyModule_AddObject(m, "DISALLOW_NESTING", PyInt_FromLong(TDB_DISALLOW_NESTING));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
590 PyModule_AddObject(m, "INCOMPATIBLE_HASH", PyInt_FromLong(TDB_INCOMPATIBLE_HASH));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
591
when PyInt_FromLong() succeeds
when PyModule_AddObject() fails
PyIntObject allocated at: PyModule_AddObject(m, "INCOMPATIBLE_HASH", PyInt_FromLong(TDB_INCOMPATIBLE_HASH));
ob_refcnt is now refs: 1 + N where N >= 0
592 PyModule_AddObject(m, "__docformat__", PyString_FromString("restructuredText"));
593
when PyString_FromString() succeeds
when PyModule_AddObject() succeeds
594 PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
595
when PyString_FromString() succeeds
when PyModule_AddObject() succeeds
596 Py_INCREF(&PyTdb);
597 PyModule_AddObject(m, "Tdb", (PyObject *)&PyTdb);
598
when PyModule_AddObject() succeeds
599 Py_INCREF(&PyTdbIterator);
600 }
601
File: | ../pytdb.c |
Function: | inittdb |
Error: | ob_refcnt of PyStringObject is 1 too high |
560 void inittdb(void)
561 {
562 PyObject *m;
563
564 if (PyType_Ready(&PyTdb) < 0)
565 return;
when PyType_Ready() succeeds
taking False path
566
567 if (PyType_Ready(&PyTdbIterator) < 0)
568 return;
when PyType_Ready() succeeds
taking False path
569
570 m = Py_InitModule3("tdb", tdb_methods, "TDB is a simple key-value database similar to GDBM that supports multiple writers.");
571 if (m == NULL)
when Py_InitModule4_64() succeeds
572 return;
taking False path
573
574 PyModule_AddObject(m, "REPLACE", PyInt_FromLong(TDB_REPLACE));
575 PyModule_AddObject(m, "INSERT", PyInt_FromLong(TDB_INSERT));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
576 PyModule_AddObject(m, "MODIFY", PyInt_FromLong(TDB_MODIFY));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
577
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
578 PyModule_AddObject(m, "DEFAULT", PyInt_FromLong(TDB_DEFAULT));
579 PyModule_AddObject(m, "CLEAR_IF_FIRST", PyInt_FromLong(TDB_CLEAR_IF_FIRST));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
580 PyModule_AddObject(m, "INTERNAL", PyInt_FromLong(TDB_INTERNAL));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
581 PyModule_AddObject(m, "NOLOCK", PyInt_FromLong(TDB_NOLOCK));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
582 PyModule_AddObject(m, "NOMMAP", PyInt_FromLong(TDB_NOMMAP));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
583 PyModule_AddObject(m, "CONVERT", PyInt_FromLong(TDB_CONVERT));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
584 PyModule_AddObject(m, "BIGENDIAN", PyInt_FromLong(TDB_BIGENDIAN));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
585 PyModule_AddObject(m, "NOSYNC", PyInt_FromLong(TDB_NOSYNC));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
586 PyModule_AddObject(m, "SEQNUM", PyInt_FromLong(TDB_SEQNUM));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
587 PyModule_AddObject(m, "VOLATILE", PyInt_FromLong(TDB_VOLATILE));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
588 PyModule_AddObject(m, "ALLOW_NESTING", PyInt_FromLong(TDB_ALLOW_NESTING));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
589 PyModule_AddObject(m, "DISALLOW_NESTING", PyInt_FromLong(TDB_DISALLOW_NESTING));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
590 PyModule_AddObject(m, "INCOMPATIBLE_HASH", PyInt_FromLong(TDB_INCOMPATIBLE_HASH));
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
591
when PyInt_FromLong() succeeds
when PyModule_AddObject() succeeds
592 PyModule_AddObject(m, "__docformat__", PyString_FromString("restructuredText"));
593
when PyString_FromString() succeeds
when PyModule_AddObject() succeeds
594 PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
595
when PyString_FromString() succeeds
when PyModule_AddObject() fails
PyStringObject allocated at: PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
ob_refcnt is now refs: 1 + N where N >= 0
596 Py_INCREF(&PyTdb);
597 PyModule_AddObject(m, "Tdb", (PyObject *)&PyTdb);
598
when PyModule_AddObject() succeeds
599 Py_INCREF(&PyTdbIterator);
600 }
601