python: pysmbd: Additional error path leak fix.
authorJeremy Allison <jra@samba.org>
Wed, 11 Jul 2018 22:23:09 +0000 (15:23 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:10:26 +0000 (13:10 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13474

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/pysmbd.c

index 41b44ad2d4223251db5460b3793b82eceb9fe304..f1b46be6c2aa9f08ffddbb013cb414ad3a157afb 100644 (file)
@@ -396,6 +396,7 @@ static PyObject *py_smbd_set_simple_acl(PyObject *self, PyObject *args, PyObject
 
        conn = get_conn(frame, service);
        if (!conn) {
+               TALLOC_FREE(frame);
                return NULL;
        }