diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-27 17:18:03 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-05-28 10:04:47 +0200 |
commit | 7a3a1cb5a76aae697f7a820c4fc5305f5684487f (patch) | |
tree | dfd0beeb7a8b5b410c435e3a22ad4c7a7bf73307 /source4/ntvfs | |
parent | 69166d3ebb1ad1590d1d6078a2c6b592d06aef5e (diff) | |
download | samba-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.c | 5 |
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); |