diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-08 23:09:44 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-11-10 10:20:00 +0200 |
commit | ad5a399d54fba103822ba9cbea4515d52eafd1fe (patch) | |
tree | 63d52b402e5ded603e1bb280f281a4ab7815f24a /source4 | |
parent | 4b978b36a950ad7082e8d4b89d43020e0b13d8bc (diff) | |
download | samba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.tar.gz samba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.tar.bz2 samba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.zip |
s4-pydsdb.c: Fix small memory leak in py_samdb_set_domain_sid()
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/pydsdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c index 2471548bab..5bc3e66809 100644 --- a/source4/dsdb/pydsdb.c +++ b/source4/dsdb/pydsdb.c @@ -134,6 +134,7 @@ static PyObject *py_samdb_set_domain_sid(PyLdbObject *self, PyObject *args) sid = dom_sid_parse_talloc(NULL, PyString_AsString(py_sid)); ret = samdb_set_domain_sid(ldb, sid); + talloc_free(sid); if (!ret) { PyErr_SetString(PyExc_RuntimeError, "set_domain_sid failed"); return NULL; |