mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
libgpo: Fix CID 1422263 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 22 02:03:17 CET 2017 on sn-devel-144
This commit is contained in:
parent
4806f0505e
commit
76f370edae
@ -248,6 +248,7 @@ static PyObject* py_ads_connect(ADS *self)
|
||||
if (!strupper_m(self->ads_ptr->auth.realm)) {
|
||||
PyErr_SetString(PyExc_SystemError, "Failed to strdup");
|
||||
TALLOC_FREE(frame);
|
||||
SAFE_FREE(passwd);
|
||||
Py_RETURN_FALSE;
|
||||
}
|
||||
|
||||
@ -255,6 +256,7 @@ static PyObject* py_ads_connect(ADS *self)
|
||||
if (!ADS_ERR_OK(status)) {
|
||||
PyErr_SetString(PyExc_SystemError, "ads_connect() failed");
|
||||
TALLOC_FREE(frame);
|
||||
SAFE_FREE(passwd);
|
||||
Py_RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user