Bug 8603

Summary: 4 bytes leakage while installing a package which is dependent on some package and that package is previously installeed
Product: [Yocto Project Subprojects] opkg Reporter: jatin jain <jatinvatsalya>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided    
Version: 0.3.0   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description jatin jain 2015-10-28 11:36:49 UTC
if i install a package A which is dependent on B and B is already installed then i will get 4 bytes leakage.

i checked using valgrind

==24312== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==24312==    at 0x402C109: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==24312==    by 0x406B504: xcalloc (xfuncs.c:55)
==24312==    by 0x4062605: buildProvides (pkg_depends.c:800)
==24312==    by 0x40652EC: hash_insert_pkg (pkg_hash.c:730)
==24312==    by 0x406549C: pkg_hash_add_from_file (pkg_hash.c:158)
==24312==    by 0x4065A00: pkg_hash_load_status_files (pkg_hash.c:254)
==24312==    by 0x804929F: main (opkg.c:396)
==24312== 
==24312== LEAK SUMMARY:
==24312==    definitely lost: 4 bytes in 1 blocks
==24312==    indirectly lost: 0 bytes in 0 blocks
==24312==      possibly lost: 0 bytes in 0 blocks
==24312==    still reachable: 0 bytes in 0 blocks
==24312==         suppressed: 0 bytes in 0 blocks
Comment 1 Alejandro del Castillo 2015-10-28 18:13:23 UTC
*** Bug 8602 has been marked as a duplicate of this bug. ***
Comment 2 Alejandro del Castillo 2015-11-04 17:52:28 UTC
Fixed on af3a03f18e61555d61516bc6878dfe1d41af69a2