Fix bug #7384 - dptr_Close has a bitmap leak.
authorIra Cooper <samba@ira.wakeful.net>
Fri, 23 Apr 2010 17:55:46 +0000 (10:55 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 23 Apr 2010 17:55:46 +0000 (10:55 -0700)
s3: Fix to dptr_Close

This fixes a bitmap "leak" in dptr_Close by making it use the same internal
routines the rest of the code does.

source3/smbd/dir.c

index aa7032de16cbad3369906576af8d191de8f19dc0..935810bf3e0a12759254d9bce08b25b5184f90b9 100644 (file)
@@ -555,9 +555,7 @@ NTSTATUS dptr_create(connection_struct *conn, const char *path, bool old_handle,
 
 int dptr_CloseDir(struct dptr_struct *dptr)
 {
-       struct smbd_server_connection *sconn = dptr->conn->sconn;
-       DLIST_REMOVE(sconn->smb1.searches.dirptrs, dptr);
-       TALLOC_FREE(dptr->dir_hnd);
+       dptr_close_internal(dptr);
        return 0;
 }