diff options
author | Jeremy Allison <jra@samba.org> | 2010-06-17 15:35:07 -0700 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-06-18 07:41:47 -0400 |
commit | f4e7d9d38ebf209be6c040f4ef98dd8111735187 (patch) | |
tree | 95dcdb61ae1b4276400d577e81e95f9aa983f3ee /source3/rpc_client/ndr.c | |
parent | 3fa38046cb76d38a6be8e29111a4be225b8bdf96 (diff) | |
download | samba-f4e7d9d38ebf209be6c040f4ef98dd8111735187.tar.gz samba-f4e7d9d38ebf209be6c040f4ef98dd8111735187.tar.bz2 samba-f4e7d9d38ebf209be6c040f4ef98dd8111735187.zip |
Convert the prs_XXX struct and functions to use talloc instead of malloc. Passes valgrind and make tests for client and server. Second version of this patch after splitting up at Simo's request. Patch to follow will delete extraneous prs_mem_free() calls.
Jeremy.
Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/rpc_client/ndr.c')
-rw-r--r-- | source3/rpc_client/ndr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/rpc_client/ndr.c b/source3/rpc_client/ndr.c index bbd78067bf..8e03f2e015 100644 --- a/source3/rpc_client/ndr.c +++ b/source3/rpc_client/ndr.c @@ -103,7 +103,6 @@ static void cli_do_rpc_ndr_done(struct tevent_req *subreq) status = rpc_api_pipe_req_recv(subreq, state, &state->r_ps); TALLOC_FREE(subreq); - prs_mem_free(&state->q_ps); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); return; @@ -126,7 +125,6 @@ NTSTATUS cli_do_rpc_ndr_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx) } ret = prs_data_blob(&state->r_ps, &blob, talloc_tos()); - prs_mem_free(&state->r_ps); if (!ret) { return NT_STATUS_NO_MEMORY; } |