summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
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
commit5cab88f1444177129bb5521ccc4afd8869e9bf25 (patch)
tree40624bbcc0f8c360287e25a357234f77cb69f3ad /source/rpc_client
parent266f5fc9af6a07bc1f1432e716e6c528e9048533 (diff)
downloadsamba-5cab88f1444177129bb5521ccc4afd8869e9bf25.tar.gz
samba-5cab88f1444177129bb5521ccc4afd8869e9bf25.tar.xz
samba-5cab88f1444177129bb5521ccc4afd8869e9bf25.zip
r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
and followed up by derrell@samba.org. Jeremy.
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index e1143e63423..23c66acf26e 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/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;
}