Bug 17318 - CodeReview: resource leak in src/modules/internet/Rsock.c
Summary: CodeReview: resource leak in src/modules/internet/Rsock.c
Status: CLOSED FIXED
Alias: None
Product: R
Classification: Unclassified
Component: Low-level (show other bugs)
Version: R 3.3.*
Hardware: Other Linux
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2017-07-23 12:12 UTC by Steve Grubb
Modified: 2017-07-24 12:46 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix the issue (582 bytes, patch)
2017-07-23 12:13 UTC, Steve Grubb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Grubb 2017-07-23 12:12:38 UTC
There is one error path that does not close the sockets. A patch will be attached to address this issue.
Comment 1 Steve Grubb 2017-07-23 12:13:02 UTC
Created attachment 2282 [details]
Patch to fix the issue
Comment 2 Martin Maechler 2017-07-24 12:46:23 UTC
Thank you.

I have commited a fix using a CLOSE_N_RETURN(.) macro,
svn rev 72962