Skip to content

valgrind shows memry leak #6

@abbycin

Description

@abbycin

~  cd mnt
~/mnt  git clone https://github.com/ankurs/Hash-Table
Cloning into 'Hash-Table'...
remote: Counting objects: 43, done.
remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43
Unpacking objects: 100% (43/43), done.
Checking connectivity... done.
~/mnt  cd Hash-Table
~/mnt/Hash-Table   master  ls
debug.h hashtable.c hashtable.h LICENSE main.c Makefile
~/mnt/Hash-Table   master  cc main.c hashtable.c
~/mnt/Hash-Table   master  valgrind --leak-check=full --track-origins=yes ./a.out
//----------------------------------------------------------------------------------------------------------------------------------
==5243== LEAK SUMMARY:
==5243== definitely lost: 52,712 bytes in 5 blocks
==5243== indirectly lost: 295,546 bytes in 12,585 blocks
==5243== possibly lost: 0 bytes in 0 blocks
==5243== still reachable: 0 bytes in 0 blocks
==5243== suppressed: 0 bytes in 0 blocks
==5243==
==5243== For counts of detected and suppressed errors, rerun with: -v
==5243== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
Key NOT found 3000
found 3000 keys
j -> 2999
value is 3097

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions