Bug 17317 - CodeReview: resource leak in src/main/platform.c
Summary: CodeReview: resource leak in src/main/platform.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:10 UTC by Steve Grubb
Modified: 2017-07-23 15:41 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix the issue (518 bytes, patch)
2017-07-23 12:10 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:10:29 UTC
There is a missing call to closedir on an error path in src/main/platform.c. A patch will be attached to fix this issue.
Comment 1 Steve Grubb 2017-07-23 12:10:55 UTC
Created attachment 2281 [details]
Patch to fix the issue
Comment 2 Duncan Murdoch 2017-07-23 15:41:49 UTC
Thanks, fixed in R-devel and R-patched in rev 72955.