summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_pipe.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-16 00:10:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:51 -0500
commit76796e212c0f1dc7587be138daac9c4ef093db4b (patch)
tree4363d0d1eb2a63e37f541f282e107fab7f07c311 /source3/rpc_client/cli_pipe.c
parentf6e81060763f238ab32b95c6cbe069ae8234ba19 (diff)
downloadsamba-76796e212c0f1dc7587be138daac9c4ef093db4b.tar.gz
samba-76796e212c0f1dc7587be138daac9c4ef093db4b.tar.bz2
samba-76796e212c0f1dc7587be138daac9c4ef093db4b.zip
r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
and followed up by derrell@samba.org. Jeremy. (This used to be commit 5cab88f1444177129bb5521ccc4afd8869e9bf25)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r--source3/rpc_client/cli_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index e1143e6342..23c66acf26 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -789,6 +789,8 @@ static NTSTATUS rpc_api_pipe(struct rpc_pipe_client *cli,
(unsigned int)cli->fnum,
cli_errstr(cli->cli)));
ret = cli_get_nt_error(cli->cli);
+ SAFE_FREE(rparam);
+ SAFE_FREE(prdata);
goto err;
}