From 08a409f9b935f142de4ac15327fef0535a78942e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 12 Dec 2004 09:11:39 +0000 Subject: r4163: 2nd attempt at fixing the OS/2 "del *" problem (This used to be commit ae14905d9522dbdc1709ef110b9933adcb740a26) --- source4/ntvfs/posix/pvfs_dirlist.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/posix/pvfs_dirlist.c b/source4/ntvfs/posix/pvfs_dirlist.c index b29c776cba..1ef6e408c3 100644 --- a/source4/ntvfs/posix/pvfs_dirlist.c +++ b/source4/ntvfs/posix/pvfs_dirlist.c @@ -179,8 +179,6 @@ const char *pvfs_list_next(struct pvfs_dir *dir, uint_t *ofs) return dir->last_name; } - if (dir->last_name) talloc_free(dir->last_name); - dir->last_name = NULL; dir->end_of_search = True; pvfs_list_hibernate(dir); return NULL; @@ -196,10 +194,6 @@ void pvfs_list_hibernate(struct pvfs_dir *dir) closedir(dir->dir); dir->dir = NULL; } - if (!dir->no_wildcard && dir->last_name) { - talloc_free(dir->last_name); - dir->last_name = NULL; - } } -- cgit