diff options
-rw-r--r-- | source4/ntvfs/posix/pvfs_dirlist.c | 6 |
1 files changed, 0 insertions, 6 deletions
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; - } } |