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

See Also:


Attachments
Patch to fix the issue (610 bytes, patch)
2017-07-23 12:17 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:16:52 UTC
In src/main/sysutils.c around line 1450, the function was leaking cd by directly returning without closing. A patch will be attached addressing this issue.
Comment 1 Steve Grubb 2017-07-23 12:17:15 UTC
Created attachment 2284 [details]
Patch to fix the issue
Comment 2 Duncan Murdoch 2017-07-23 15:14:38 UTC
Thanks, committed in R-devel rev 72952 and soon in and R-patched.