STABLE12-winnt-cleanup-memory-leak-20030303

FIXES 1322

due to a change in the smb protocol we leaked memory. fix it.


(cherry picked from commit 241c062810)
This commit is contained in:
James Peterson 2003-03-03 15:19:53 +00:00 committed by Derrick Brashear
parent a760f23834
commit 6e1cf41686

View File

@ -2363,8 +2363,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 {