py_talloc_import now uses a steal, so this free is incorrect
authorAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 04:05:53 +0000 (14:05 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Jul 2009 05:15:37 +0000 (15:15 +1000)
source4/librpc/ndr/py_security.c

index 1b54aab02af653aa30d717ec53204185d977343b..7ac4d34bafc1f10b88ffed96e57ba171553defc0 100644 (file)
@@ -379,7 +379,6 @@ static PyObject *py_random_sid(PyObject *self)
         sid = dom_sid_parse_talloc(NULL, str);
        talloc_free(str);
        ret = py_talloc_import(&dom_sid_Type, sid);
-       talloc_free(sid);
        return ret;
 }