diff options
Diffstat (limited to 'source3/torture/scanner.c')
-rw-r--r-- | source3/torture/scanner.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/scanner.c b/source3/torture/scanner.c index c5f6708408..a6025593ff 100644 --- a/source3/torture/scanner.c +++ b/source3/torture/scanner.c @@ -71,8 +71,8 @@ static NTSTATUS try_trans2(struct cli_state *cli, &rparam, rparam_len, &rdata, rdata_len); - if (rdata) free(rdata); - if (rparam) free(rparam); + SAFE_FREE(rdata); + SAFE_FREE(rparam); return cli_nt_error(cli); } @@ -273,8 +273,8 @@ static NTSTATUS try_nttrans(struct cli_state *cli, &rparam, rparam_len, &rdata, rdata_len); - if (rdata) free(rdata); - if (rparam) free(rparam); + SAFE_FREE(rdata); + SAFE_FREE(rparam); return cli_nt_error(cli); } |