Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

mutex_destroy

What if one forgets to do mutex_destroy(&mutex)
can this cause memory leak?
0
learningunix
Asked:
learningunix
1 Solution
 
Infinity08Commented:
That depends on the specific implementation, but not calling mutex_destroy for an initialized mutex could cause a memory leak yes.

As a rule, always make sure to properly clean up acquired resources, including mutexes.
0
 
learningunixAuthor Commented:
Thx
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now