mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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 241c06281036aedbce4c4e8c6a5ce6c981eef27a)
This commit is contained in:
parent
a760f23834
commit
6e1cf41686
@ -2363,8 +2363,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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user