Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about resource-leak

Read more about resource-leak

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - resource-leak

Weird resource leak related to gulpfile or git or cmd prompt

I have a gulpfile in a project directory. I use gulp frequently and this file is similar to my different gulpfile's that I've used many times before. I first became aware of this problem when I tried ...
test-img

dgo

git

memory-leaks

gulp

handle

resource-leak

Votes: 0

Answers: 0

Leaking handles when using std::shared_mutex in Windows

Same question here: Memory leaks using shared_mutex but in Windows 11. The Windows handles are not being closed. #include <iostream> using namespace std; #include <shared_mutex> extern &...
test-img

Bil_Bomba

c++

c++17

std

mutex

resource-leak

Votes: 0

Answers: 0

FileSystems.getDefault().getPath() vs Paths.get() and resource leakage

If I use FileSystems.getDefault().getPath() it holds resource at FileSystems.getDefault(). Few tools like sonar, coverity give high impact issues of resource leak for using this. If I replace it with ...
test-img

firoj_mujawar

java

path

filesystems

nio

resource-leak

Votes: 0

Answers: 1

Latest Answer

Your tools are reporting a false positive. That's because the declared type returned by FileSystems.getDefault(), FileSystem, implements Closeable. That means that ideally you should close it. However...
test-img

Rob Spoor

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved