Closed Bug 226686 Opened 21 years ago Closed 21 years ago

The WINNT version of PR_Accept leaks a socket handle if it fails.

Categories

(NSPR :: NSPR, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

The WINNT version of PR_Accept and PR_AcceptRead creates
a new socket (or gets one from its socket recycle list)
and calls AcceptEx to accept a new connection on the new
socket.

It does not close the socket or put the socket to the
socket recycle list when it fails.
Attached patch Proposed patchSplinter Review
Close the new socket if PR_Accept or PR_AcceptRead fails.
Patch checked into the NSPR tip (4.5) and
NSPR_4_4_BRANCH (4.4.1).
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.4.1
Comment on attachment 136256 [details] [diff] [review]
Proposed patch

Darin, if you don't have time to review this patch
this week, just cancel the review request.  Thanks.
Attachment #136256 - Flags: review?(darin)
Comment on attachment 136256 [details] [diff] [review]
Proposed patch

fwiw, r=darin
Attachment #136256 - Flags: review?(darin) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: