Bug 135417

Summary: [Linux] Resource leak of unclosed file descriptor - when open returns zero, descriptor handle leaks.
Product: WebKit Reporter: przemeks@pkuczynski.com <p.kuczynski>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, gyuyoung.kim, m.leszko, mpakulavelrutka
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch none

przemeks@pkuczynski.com
Reported 2014-07-30 07:04:41 PDT
When open returns zero, fd handle leaks. Checking (fd > 0) needs to be replaced with (fd != -1).
Attachments
proposed patch (1.26 KB, patch)
2014-07-30 07:39 PDT, przemeks@pkuczynski.com
no flags
przemeks@pkuczynski.com
Comment 1 2014-07-30 07:39:52 PDT
Created attachment 235744 [details] proposed patch
Gyuyoung Kim
Comment 2 2014-07-31 01:38:58 PDT
CC'ing Filip.
WebKit Commit Bot
Comment 3 2014-08-05 18:03:12 PDT
Comment on attachment 235744 [details] proposed patch Clearing flags on attachment: 235744 Committed r172113: <http://trac.webkit.org/changeset/172113>
WebKit Commit Bot
Comment 4 2014-08-05 18:03:17 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.