]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pyglue: Fix leak
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 27 Jul 2023 20:15:02 +0000 (08:15 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Aug 2023 04:39:37 +0000 (04:39 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/pyglue.c

index 901a9a37be58cd673f61cc25c8f6cfbf224d5cb2..68597cbb1bf2e48d3eaa8b365bb3a5f7fd70a5fa 100644 (file)
@@ -491,6 +491,7 @@ static PyObject *py_get_burnt_commandline(PyObject *self, PyObject *args)
 
        argv = PyList_AsStringList(frame, cmdline_as_list, "sys.argv");
        if (argv == NULL) {
+               TALLOC_FREE(frame);
                return NULL;
        }