summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-11-08 23:09:44 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-11-10 10:20:00 +0200
commitad5a399d54fba103822ba9cbea4515d52eafd1fe (patch)
tree63d52b402e5ded603e1bb280f281a4ab7815f24a
parent4b978b36a950ad7082e8d4b89d43020e0b13d8bc (diff)
downloadsamba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.tar.gz
samba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.tar.bz2
samba-ad5a399d54fba103822ba9cbea4515d52eafd1fe.zip
s4-pydsdb.c: Fix small memory leak in py_samdb_set_domain_sid()
-rw-r--r--source4/dsdb/pydsdb.c1
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;