summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-08-20 13:43:41 +0200
committerJeremy Allison <jra@samba.org>2012-09-04 15:14:59 -0700
commit2fe08c886ae60c0affae0166ce1cdab1593bab3e (patch)
treea447390df076be678af5ae1d6573fa475cf74a2f /source3/libsmb
parent2172a1448e8798b4df50d5874b38a252d15b3ad0 (diff)
downloadsamba-2fe08c886ae60c0affae0166ce1cdab1593bab3e.tar.gz
samba-2fe08c886ae60c0affae0166ce1cdab1593bab3e.tar.bz2
samba-2fe08c886ae60c0affae0166ce1cdab1593bab3e.zip
s3: Fix memleaks in pylibsmb.c
Cut&Paste errors from the read&x routine Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/pylibsmb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c
index be04e5b7db..d8e64b3568 100644
--- a/source3/libsmb/pylibsmb.c
+++ b/source3/libsmb/pylibsmb.c
@@ -577,9 +577,9 @@ static PyObject *py_cli_ftruncate(struct py_cli_state *self, PyObject *args,
return NULL;
}
status = cli_ftruncate_recv(req);
+ TALLOC_FREE(req);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(req);
PyErr_SetNTSTATUS(status);
return NULL;
}
@@ -609,9 +609,9 @@ static PyObject *py_cli_delete_on_close(struct py_cli_state *self,
return NULL;
}
status = cli_nt_delete_on_close_recv(req);
+ TALLOC_FREE(req);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(req);
PyErr_SetNTSTATUS(status);
return NULL;
}