kubernetes-client / c

Official C client library for Kubernetes
Apache License 2.0
148 stars 47 forks source link

[BUG][Valgrind memcheck] Memory leak in examples/create_pod #15

Closed ityuhui closed 4 years ago

ityuhui commented 4 years ago

Command:

valgrind --tool=memcheck --leak-check=full ./create_pod_bin

Result:

==9334== 1,216 (40 direct, 1,176 indirect) bytes in 1 blocks are definitely lost in loss record 27 of 27 ==9334== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==9334== by 0x108B96: create_a_pod (main.c:12) ==9334== by 0x108F14: main (main.c:86)

ityuhui commented 4 years ago

This issue is fixed by the PR #17