diff options
author | Jeremy Allison <jra@samba.org> | 2004-12-16 21:12:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:39 -0500 |
commit | 54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac (patch) | |
tree | 3e777cddfa2c8a2da0540ff010d02d63c9894631 /source3/torture | |
parent | 46f0e330f1e455e3338a7e7a3b7a287df752fe1a (diff) | |
download | samba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.tar.gz samba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.tar.bz2 samba-54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac.zip |
r4236: More *alloc fixes.
Jeremy.
(This used to be commit 6b25a6e088390d33314ca69c8f17c869cec3904b)
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/cmd_vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 43661f1d6c..04c40db72e 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -285,7 +285,7 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c } vfs->files[fd] = (struct files_struct *)malloc(sizeof(struct files_struct)); - vfs->files[fd]->fsp_name = strdup(argv[1]); + vfs->files[fd]->fsp_name = SMB_STRDUP(argv[1]); vfs->files[fd]->fd = fd; vfs->files[fd]->conn = vfs->conn; printf("open: fd=%d\n", fd); |