summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Cooper <samba@ira.wakeful.net>2010-04-23 10:55:46 -0700
committerKarolin Seeger <kseeger@samba.org>2010-05-17 09:50:14 +0200
commitf3868dea15cf8c28ac24b774ff07dbe19f326145 (patch)
treeed607266200bf7fe0af121987d51ee8fefd10122
parentaa14278c67cec5a296956a5d9af471a525a1d75a (diff)
downloadsamba-f3868dea15cf8c28ac24b774ff07dbe19f326145.tar.gz
Fix bug #7384 - dptr_Close has a bitmap leak.
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. (cherry picked from commit dd2025947136f28b22b70de59309e149a1f45f3d) (cherry picked from commit 3e6f961a7a6b4d0e41d0cf2c47ca2aebeea8f6af)
-rw-r--r--source3/smbd/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 5ce4a7b0994..fe8e2431553 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -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;
}