summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_pipe.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 09:41:30 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 09:41:30 +0000
commit941a3a5d3a46fd4fb913fddc6aa956361d218d23 (patch)
tree2154f3049a126a91cf5cc12a79909a2a00664fc8 /source3/rpc_client/cli_pipe.c
parent091dbaa00bfb970137290a306ee77b4c5255b6c2 (diff)
downloadsamba-941a3a5d3a46fd4fb913fddc6aa956361d218d23.tar.gz
samba-941a3a5d3a46fd4fb913fddc6aa956361d218d23.tar.bz2
samba-941a3a5d3a46fd4fb913fddc6aa956361d218d23.zip
move to SAFE_FREE()
(This used to be commit 549fe42bd48b3418e63ba4872bc5992dae46d514)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r--source3/rpc_client/cli_pipe.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 1496f05504..4415b461d9 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -363,10 +363,7 @@ static BOOL rpc_api_pipe(struct cli_state *cli, uint16 cmd, prs_struct *data, pr
/* Throw away returned params - we know we won't use them. */
- if(rparam) {
- free(rparam);
- rparam = NULL;
- }
+ SAFE_FREE(rparam);
if (prdata == NULL) {
DEBUG(0,("rpc_api_pipe: cmd %x on pipe %x failed to return data.\n",
@@ -934,10 +931,8 @@ static BOOL rpc_pipe_set_hnd_state(struct cli_state *cli, char *pipe_name, uint1
state_set = True;
}
- if (rparam)
- free(rparam);
- if (rdata)
- free(rdata );
+ SAFE_FREE(rparam);
+ SAFE_FREE(rdata);
return state_set;
}