Task #91877 - python-ldap-3.4.4-13.fc43/scan-results.err

back to task #91877
download
Error: GCC_ANALYZER_WARNING (CWE-401):
python-ldap-3.4.4/Modules/LDAPObject.c:610:8: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(PyBytes_AsString(PyObject_CallMethod(SASLObject, "callback", "isss", *interact.id, *interact.challenge, *interact.prompt, *interact.defresult)))’
python-ldap-3.4.4/Modules/LDAPObject.c:632:1: enter_function: entry to ‘py_ldap_sasl_interaction’
python-ldap-3.4.4/Modules/LDAPObject.c:639:12: branch_true: following ‘true’ branch...
python-ldap-3.4.4/Modules/LDAPObject.c:642:14: branch_true: ...to here
python-ldap-3.4.4/Modules/LDAPObject.c:642:14: call_function: calling ‘interaction’ from ‘py_ldap_sasl_interaction’
python-ldap-3.4.4/Modules/LDAPObject.c:642:14: return_function: returning to ‘py_ldap_sasl_interaction’ from ‘interaction’
python-ldap-3.4.4/Modules/LDAPObject.c:643:12: branch_false: following ‘false’ branch...
python-ldap-3.4.4/Modules/LDAPObject.c:645:9: branch_false: ...to here
python-ldap-3.4.4/Modules/LDAPObject.c:639:12: branch_true: following ‘true’ branch...
python-ldap-3.4.4/Modules/LDAPObject.c:642:14: branch_true: ...to here
python-ldap-3.4.4/Modules/LDAPObject.c:642:14: call_function: calling ‘interaction’ from ‘py_ldap_sasl_interaction’
#  608|        */
#  609|       interact->result = strdup(c_result);
#  610|->     if (interact->result == NULL)
#  611|           return LDAP_OPERATIONS_ERROR;
#  612|       interact->len = strlen(c_result);