From: James Peterson Date: Tue, 6 Mar 2001 21:21:09 +0000 (+0000) Subject: STABLE10-winnt-directory-scan-memory-leak-20010210 X-Git-Tag: openafs-stable-1_0_3~57 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=740596dac466c2ba601c25b0b792edb681acd915;p=packages%2Fo%2Fopenafs.git STABLE10-winnt-directory-scan-memory-leak-20010210 (cherry picked from commit 83074e0491fb5a215ffdb223280a3c3428edd29e) --- diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index f6067288d..8f3c5cb5c 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -2367,7 +2367,8 @@ nextEntry: * we're supposed to close the search if we're done, and we're done, * or if something went wrong, close the search. */ - if ((searchFlags & 1) || ((searchFlags & 2) && eos) + /* ((searchFlags & 1) || ((searchFlags & 2) && eos) */ + if ((searchFlags & 1) || (returnedNames == 0) || code != 0) smb_DeleteDirSearch(dsp); if (code) smb_SendTran2Error(vcp, p, opx, code);