git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350f4e3
)
Fix bug #7384 - dptr_Close has a bitmap leak.
author
Ira Cooper
<samba@ira.wakeful.net>
Fri, 23 Apr 2010 17:55:46 +0000
(10:55 -0700)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/smbd/dir.c
b/source3/smbd/dir.c
index aa7032de16cbad3369906576af8d191de8f19dc0..935810bf3e0a12759254d9bce08b25b5184f90b9 100644
(file)
--- 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;
}