diff options
Diffstat (limited to 'source3/torture/locktest2.c')
-rw-r--r-- | source3/torture/locktest2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c index 2b74b77b64..734c9c44bf 100644 --- a/source3/torture/locktest2.c +++ b/source3/torture/locktest2.c @@ -267,8 +267,7 @@ static void reconnect(struct cli_state *cli[NSERVERS][NCONNECTIONS], } cli_ulogoff(cli[server][conn]); cli_shutdown(cli[server][conn]); - free(cli[server][conn]); - cli[server][conn] = NULL; + SAFE_FREE(cli[server][conn]); } cli[server][conn] = connect_one(share[server]); if (!cli[server][conn]) { |