Commit: f8754ec28b47ccf9e044ef0a20df47f7e1df78a3
Parent: 51e9b93d604e88a1e09ea5e20467c1fa10d5f6aa
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-09 16:31:34
Tree: e6472f18d007855c297180543b633c0da8adddf7

shared: Fix memory leaks in mgmt_unref Destroy notify and pending lists on freeing mgmt. Those two lists cannot be destroyed in same place as reply and request queues due to being used in can_read_data(). Fix following valgrind reports: 24 bytes in 1 blocks are definitely lost in loss record 70 of 212 at 0x4C2C494: calloc (in /usr/lib/valgrind/ vgpreload_memcheck-amd64-linux.so) by 0x46B5E2: queue_new (queue.c:46) by 0x46C3CA: mgmt_new (mgmt.c:407) by 0x46C4B5: mgmt_new_default (mgmt.c:466) by 0x45FB45: adapter_init (adapter.c:6237) by 0x40A4F1: main (main.c:534) 24 bytes in 1 blocks are definitely lost in loss record 71 of 212 at 0x4C2C494: calloc (in /usr/lib/ valgrind/vgpreload_memcheck-amd64-linux.so) by 0x46B5E2: queue_new (queue.c:46) by 0x46C3D8: mgmt_new (mgmt.c:417) by 0x46C4B5: mgmt_new_default (mgmt.c:466) by 0x45FB45: adapter_init (adapter.c:6237) by 0x40A4F1: main (main.c:534)

Diffstat

M src/shared/mgmt.c | 7 ++++++-

1 files changed, 6 insertions(+), 1 deletions(-)

View Full Diff | Patch