Project

General

Profile

Bug #11762

Memory leak in Mutex.cc, pthread_mutexattr_init without pthread_mutexattr_destroy

Added by Shengzhi Meng about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
common
Target version:
-
Start date:
05/26/2015
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
hammer, firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

Description

Leak in function Mutex::Mutex

in "else if (lockdep)" statement,
there is pthread_mutexattr_init(&attr) and without pthread_mutexattr_destroy(&attr).

So obviously it caused memory leak.


Related issues

Copied to Ceph - Backport #12393: Memory leak in Mutex.cc, pthread_mutexattr_init without pthread_mutexattr_destroy Resolved 05/26/2015
Copied to Ceph - Backport #12394: Memory leak in Mutex.cc, pthread_mutexattr_init without pthread_mutexattr_destroy Resolved 05/26/2015

History

#1 Updated by Kefu Chai about 3 years ago

  • Status changed from New to Need Review
  • Assignee changed from Kefu Chai to Shengzhi Meng
  • Source changed from other to Community (dev)
  • Backport set to hammer, firefly

#2 Updated by Kefu Chai about 3 years ago

  • Priority changed from Normal to Urgent

#3 Updated by Samuel Just about 3 years ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler almost 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF