File: src/_webp.c
Function: setup_module
Error: memory leak: ob_refcnt of new ref from (unknown) PyUnicode_FromString is 1 too high
951 static int
952 setup_module(PyObject *m) {
953     PyObject *d = PyModule_GetDict(m);
954     addMuxFlagToModule(m);
955     addAnimFlagToModule(m);
956     addTransparencyFlagToModule(m);
957 
958     PyDict_SetItemString(
when PyUnicode_FromString() succeeds
when PyDict_SetItemString() succeeds
new ref from (unknown) PyUnicode_FromString was allocated at:     PyDict_SetItemString(
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
959         d, "webpdecoder_version", PyUnicode_FromString(WebPDecoderVersion_str()));
960 
961 #ifdef HAVE_WEBPANIM
962     /* Ready object types */
963     if (PyType_Ready(&WebPAnimDecoder_Type) < 0 ||
when PyType_Ready() succeeds
taking False path
taking False path
964         PyType_Ready(&WebPAnimEncoder_Type) < 0) {
when PyType_Ready() succeeds
965         return -1;
966     }
967 #endif
968     return 0;
memory leak: ob_refcnt of new ref from (unknown) PyUnicode_FromString is 1 too high
was expecting final owned ob_refcnt of new ref from (unknown) PyUnicode_FromString to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
found 1 similar trace(s) to this
969 }

File: src/_webp.c
Function: setup_module
Error: memory leak: ob_refcnt of new ref from (unknown) PyUnicode_FromString is 1 too high
951 static int
952 setup_module(PyObject *m) {
953     PyObject *d = PyModule_GetDict(m);
954     addMuxFlagToModule(m);
955     addAnimFlagToModule(m);
956     addTransparencyFlagToModule(m);
957 
958     PyDict_SetItemString(
when PyUnicode_FromString() succeeds
when PyDict_SetItemString() succeeds
new ref from (unknown) PyUnicode_FromString was allocated at:     PyDict_SetItemString(
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
959         d, "webpdecoder_version", PyUnicode_FromString(WebPDecoderVersion_str()));
960 
961 #ifdef HAVE_WEBPANIM
962     /* Ready object types */
963     if (PyType_Ready(&WebPAnimDecoder_Type) < 0 ||
when PyType_Ready() succeeds
taking False path
taking True path
964         PyType_Ready(&WebPAnimEncoder_Type) < 0) {
when PyType_Ready() fails
965         return -1;
memory leak: ob_refcnt of new ref from (unknown) PyUnicode_FromString is 1 too high
was expecting final owned ob_refcnt of new ref from (unknown) PyUnicode_FromString to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
found 3 similar trace(s) to this
966     }
967 #endif
968     return 0;
969 }

File: src/_webp.c
Function: setup_module
Error: calling PyDict_SetItemString with NULL as argument 3 (D.17196) at src/_webp.c:958
951 static int
952 setup_module(PyObject *m) {
953     PyObject *d = PyModule_GetDict(m);
954     addMuxFlagToModule(m);
955     addAnimFlagToModule(m);
956     addTransparencyFlagToModule(m);
957 
958     PyDict_SetItemString(
when PyUnicode_FromString() fails
calling PyDict_SetItemString with NULL as argument 3 (D.17196) at src/_webp.c:958
959         d, "webpdecoder_version", PyUnicode_FromString(WebPDecoderVersion_str()));
960 
961 #ifdef HAVE_WEBPANIM
962     /* Ready object types */
963     if (PyType_Ready(&WebPAnimDecoder_Type) < 0 ||
964         PyType_Ready(&WebPAnimEncoder_Type) < 0) {
965         return -1;
966     }
967 #endif
968     return 0;
969 }