git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f17fe1c
)
winnt-cleanup-memory-leak-20030303
author
James Peterson
<james@abrakus.com>
Mon, 3 Mar 2003 15:19:00 +0000 (15:19 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Mon, 3 Mar 2003 15:19:00 +0000 (15:19 +0000)
FIXES 1322
due to a change in the smb protocol we leaked memory. fix it.
src/WINNT/afsd/smb3.c
patch
|
blob
|
history
diff --git
a/src/WINNT/afsd/smb3.c
b/src/WINNT/afsd/smb3.c
index
96b2201
..
4273525
100644
(file)
--- a/
src/WINNT/afsd/smb3.c
+++ b/
src/WINNT/afsd/smb3.c
@@
-2365,8
+2365,9
@@
nextEntry:
* or if something went wrong, close the search.
*/
/* ((searchFlags & 1) || ((searchFlags & 2) && eos) */
- if ((searchFlags & 1) || (returnedNames == 0)
- || code != 0) smb_DeleteDirSearch(dsp);
+ if ((searchFlags & 1) || (returnedNames == 0) || ((searchFlags & 2) &&
+ eos) || code != 0)
+ smb_DeleteDirSearch(dsp);
if (code)
smb_SendTran2Error(vcp, p, opx, code);
else {