diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-03-13 14:44:28 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-03-13 16:53:06 +0100 |
commit | fa0f0c210763e0db5d4c6947840873998fd6b2eb (patch) | |
tree | d137cd0b4f52048dd73f07cd6d928a81cd3bbb37 /source4/librpc/rpc | |
parent | 6539eba880682b53eb867b27c40efb0fbee18b4a (diff) | |
download | samba-fa0f0c210763e0db5d4c6947840873998fd6b2eb.tar.gz samba-fa0f0c210763e0db5d4c6947840873998fd6b2eb.tar.bz2 samba-fa0f0c210763e0db5d4c6947840873998fd6b2eb.zip |
s4:pyrpc: fix memory leaks in error pathes
metze
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index ffd2376c74..400f61b882 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -150,6 +150,7 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar if (!PyArg_ParseTupleAndKeywords(args, kwargs, "is#|O:request", discard_const_p(char *, kwnames), &opnum, &in_data, &in_length, &object)) { + talloc_free(mem_ctx); return NULL; } @@ -159,6 +160,7 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar ZERO_STRUCT(data_out); if (object != NULL && !PyString_AsGUID(object, &object_guid)) { + talloc_free(mem_ctx); return NULL; } |