We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93c025 commit 624e332Copy full SHA for 624e332
Modules/LDAPObject.c
@@ -1171,6 +1171,7 @@ l_ldap_result4(LDAPObject *self, PyObject *args)
1171
}
1172
else
1173
e = "ldap_parse_result";
1174
+ ldap_controls_free(serverctrls);
1175
ldap_msgfree(msg);
1176
Py_XDECREF(valuestr);
1177
return LDAPerror(self->ldap, e);
@@ -1182,6 +1183,7 @@ l_ldap_result4(LDAPObject *self, PyObject *args)
1182
1183
LDAP_BEGIN_ALLOW_THREADS(self);
1184
ldap_set_option(self->ldap, LDAP_OPT_ERROR_NUMBER, &err);
1185
LDAP_END_ALLOW_THREADS(self);
1186
1187
1188
1189
return LDAPerror(self->ldap, "LDAPControls_to_List");
0 commit comments