winnt-cleanup-memory-leak-20030303

FIXES 1322

due to a change in the smb protocol we leaked memory. fix it.
This commit is contained in:
James Peterson 2003-03-03 15:19:00 +00:00 committed by Derrick Brashear
parent f17fe1ca6a
commit 241c062810

View File

@ -2365,8 +2365,9 @@ nextEntry:
* or if something went wrong, close the search. * or if something went wrong, close the search.
*/ */
/* ((searchFlags & 1) || ((searchFlags & 2) && eos) */ /* ((searchFlags & 1) || ((searchFlags & 2) && eos) */
if ((searchFlags & 1) || (returnedNames == 0) if ((searchFlags & 1) || (returnedNames == 0) || ((searchFlags & 2) &&
|| code != 0) smb_DeleteDirSearch(dsp); eos) || code != 0)
smb_DeleteDirSearch(dsp);
if (code) if (code)
smb_SendTran2Error(vcp, p, opx, code); smb_SendTran2Error(vcp, p, opx, code);
else { else {