mochi-hpc / mochi-ssg

Scalable Service Groups (SSG), a group membership service for Mochi
Other
1 stars 1 forks source link

small memory leak in group create/destroy path #11

Closed shanedsnyder closed 3 years ago

shanedsnyder commented 3 years ago

In GitLab by @roblatham00 on May 9, 2019, 13:05

valgrind will complain about two small memory leaks, even in code that calls ssg_group_destroy and ssg_finalize:

==19398== 53 bytes in 1 blocks are indirectly lost in loss record 7 of 15
==19398==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19398==    by 0x5E099B9: strdup (strdup.c:42)
==19398==    by 0x50459A7: ssg_group_descriptor_create (ssg.c:989)
==19398==    by 0x50462B9: ssg_group_create (ssg.c:153)
==19398==    by 0x5046DEA: ssg_group_create_mpi (ssg.c:391)
==19398==    by 0x109072: main (ssg-test-simple.c:133)

==19398== 85 (32 direct, 53 indirect) bytes in 1 blocks are definitely lost in loss record 10 of 15
==19398==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19398==    by 0x504598C: ssg_group_descriptor_create (ssg.c:983)
==19398==    by 0x50462B9: ssg_group_create (ssg.c:153)
==19398==    by 0x5046DEA: ssg_group_create_mpi (ssg.c:391)
==19398==    by 0x109072: main (ssg-test-simple.c:133)
shanedsnyder commented 3 years ago

In GitLab by @roblatham00 on Dec 19, 2019, 13:07

closed via commit e04acc55ad355491f53fee0e4db92b84bfaeb058