summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-27 17:18:03 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-28 10:04:47 +0200
commit7a3a1cb5a76aae697f7a820c4fc5305f5684487f (patch)
treedfd0beeb7a8b5b410c435e3a22ad4c7a7bf73307 /source4/ntvfs
parent69166d3ebb1ad1590d1d6078a2c6b592d06aef5e (diff)
downloadsamba-7a3a1cb5a76aae697f7a820c4fc5305f5684487f.tar.gz
samba-7a3a1cb5a76aae697f7a820c4fc5305f5684487f.tar.xz
samba-7a3a1cb5a76aae697f7a820c4fc5305f5684487f.zip
s4:ntvfs/simple/svfs_util.c - change an "asprintf" into a "talloc_asprintf"
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/simple/svfs_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/ntvfs/simple/svfs_util.c b/source4/ntvfs/simple/svfs_util.c
index 70ba340727b..2a01c2d5dec 100644
--- a/source4/ntvfs/simple/svfs_util.c
+++ b/source4/ntvfs/simple/svfs_util.c
@@ -120,14 +120,15 @@ struct svfs_dir *svfs_list_unix(TALLOC_CTX *mem_ctx, struct ntvfs_request *req,
dir->files[i].name = low_name;
if (!dir->files[i].name) { continue; }
- asprintf(&full_name, "%s/%s", dir->unix_dir, dir->files[i].name);
+ full_name = talloc_asprintf(mem_ctx, "%s/%s", dir->unix_dir,
+ dir->files[i].name);
if (!full_name) { continue; }
if (stat(full_name, &dir->files[i].st) == 0) {
dir->count++;
}
- free(full_name);
+ talloc_free(full_name);
}
closedir(odir);