[SERVER-18690] Coverity analysis defect 11213: Resource leak Created: 27/May/15  Updated: 08/Jan/24  Resolved: 24/Aug/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 8 08/28/15
Participants:

 Description   

Leak of memory or pointers to system resources

Defect 11213 (STATIC_C)
Checker RESOURCE_LEAK (subcategory none)
File: /src/third_party/v8/src/platform-posix.cc
Function v8::internal::OS::FOpen(const char *, const char *)
/src/third_party/v8/src/platform-posix.cc, line: 211
Storage is returned from allocation function "fopen".

      FILE* file = fopen(path, mode);

/src/third_party/v8/src/platform-posix.cc, line: 211
Assigning: "file" = storage returned from "fopen(path, mode)".

      FILE* file = fopen(path, mode);

/src/third_party/v8/src/platform-posix.cc, line: 214
Resource "file" is not freed or pointed-to in "fileno".

      if (fstat(fileno(file), &file_stat) != 0) return NULL;

/src/third_party/v8/src/platform-posix.cc, line: 214
Variable "file" going out of scope leaks the storage it points to.

      if (fstat(fileno(file), &file_stat) != 0) return NULL;



 Comments   
Comment by Andrew Morrow (Inactive) [ 24/Aug/15 ]

V8 support has been removed in SERVER-19378

Generated at Thu Feb 08 03:48:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.