Author: tridge Date: 2007-05-29 08:30:41 +0000 (Tue, 29 May 2007) New Revision: 23182
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23182 Log: fixed valgrind error Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/lockbench.c =================================================================== --- branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-29 08:22:45 UTC (rev 23181) +++ branches/SAMBA_4_0/source/torture/raw/lockbench.c 2007-05-29 08:30:41 UTC (rev 23182) @@ -176,6 +176,8 @@ struct smb_composite_connect *io = &state->reconnect; char *host, *share; + state->te = NULL; + if (!torture_get_conn_index(state->client_num, state->mem_ctx, &host, &share)) { DEBUG(0,("Can't find host/share for reconnect?!\n")); exit(1); Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c =================================================================== --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-29 08:22:45 UTC (rev 23181) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-29 08:30:41 UTC (rev 23182) @@ -114,6 +114,8 @@ struct smb_composite_connect *io = &state->reconnect; char *host, *share; + state->te = NULL; + if (!torture_get_conn_index(state->client_num, state->mem_ctx, &host, &share)) { DEBUG(0,("Can't find host/share for reconnect?!\n")); exit(1);