Bug 717073

Summary: memory leaks found by Valgrind + TET
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED DUPLICATE QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: amsharma, benl, dpal, jgalipea
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 697027 Environment:
Last Closed: 2011-06-27 22:03:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 697027    
Bug Blocks: 697663, 711241    

Description Noriko Hosoi 2011-06-27 21:39:07 UTC
+++ This bug was initially created as a clone of Bug #697027 +++

Bug 697027 - 6 - minor memory leaks found by Valgrind + TET
Description: Moving "csn_free(&attributedeletioncsn)" to the
free_and_return section to fix the leak.

Created attachment 492469 [details]
git patch file (master): [Case 6]

ruvstore>
==28643== 48 bytes in 3 blocks are definitely lost in loss record 579 of 1,499
==28643==    at 0x4C23481: calloc (vg_replace_malloc.c:418)
==28643==    by 0x4E70F19: slapi_ch_calloc (ch_malloc.c:243)
==28643==    by 0x4E72AE6: csn_new (csn.c:102)
==28643==    by 0x4E72B1D: csn_new_by_string (csn.c:112)
==28643==    by 0x4E80146: str2entry_state_information_from_type (entry.c:131)
==28643==    by 0x4E8179F: str2entry_dupcheck (entry.c:786)
==28643==    by 0x4E82D4B: slapi_str2entry_ext (entry.c:1405)
==28643==    by 0xBC6146C: id2entry (id2entry.c:406)
==28643==    by 0xBC9D7C0: ldbm_back_next_search_entry_ext (ldbm_search.c:1296)
==28643==    by 0xBC9D1D7: ldbm_back_next_search_entry (ldbm_search.c:1141)
==28643==    by 0x4EB9211: iterate (opshared.c:1141)
==28643==    by 0x4EB9ACF: send_results_ext (opshared.c:1522)
==28643==    by 0x4EB8979: op_shared_search (opshared.c:733)
==28643==    by 0x42BBE4: do_search (search.c:393)
==28643==    by 0x413B76: connection_dispatch_operation (connection.c:611)
==28643==    by 0x4152BF: connection_threadmain (connection.c:2328)
==28643==    by 0x5FCD632: _pt_root (ptthread.c:187)
==28643==    by 0x61E8760: start_thread (pthread_create.c:301)
==28643==    by 0x64DD98C: clone (clone.S:115)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Comment 2 Noriko Hosoi 2011-06-27 22:03:13 UTC
Sorry.  The patch to fix this bug is already applied as bz 711241.

*** This bug has been marked as a duplicate of bug 711241 ***