r4163: 2nd attempt at fixing the OS/2 "del *" problem
authorAndrew Tridgell <tridge@samba.org>
Sun, 12 Dec 2004 09:11:39 +0000 (09:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:21 +0000 (13:07 -0500)
source/ntvfs/posix/pvfs_dirlist.c

index b29c776cba863e67dadaf1915ea79bc01044268a..1ef6e408c30e878ea54860bbee383936473e8844 100644 (file)
@@ -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;
-       }
 }