{"action":"closed","issue":{"url":"https://api.github.com/repos/linkdd/ooduck/issues/1","labels_url":"https://api.github.com/repos/linkdd/ooduck/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/linkdd/ooduck/issues/1/comments","events_url":"https://api.github.com/repos/linkdd/ooduck/issues/1/events","html_url":"https://github.com/linkdd/ooduck/issues/1","id":107407686,"number":1,"title":"Memory leaks","user":{"login":"linkdd","id":9212,"avatar_url":"https://avatars.githubusercontent.com/u/9212?v=3","gravatar_id":"","url":"https://api.github.com/users/linkdd","html_url":"https://github.com/linkdd","followers_url":"https://api.github.com/users/linkdd/followers","following_url":"https://api.github.com/users/linkdd/following{/other_user}","gists_url":"https://api.github.com/users/linkdd/gists{/gist_id}","starred_url":"https://api.github.com/users/linkdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkdd/subscriptions","organizations_url":"https://api.github.com/users/linkdd/orgs","repos_url":"https://api.github.com/users/linkdd/repos","events_url":"https://api.github.com/users/linkdd/events{/privacy}","received_events_url":"https://api.github.com/users/linkdd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/linkdd/ooduck/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-20T18:04:27Z","updated_at":"2015-09-20T21:09:28Z","closed_at":"2015-09-20T21:09:28Z","body":"With valgrind:\r\n\r\n```\r\n==8903== Memcheck, a memory error detector\r\n==8903== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.\r\n==8903== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info\r\n==8903== Command: ./ooduck-example\r\n==8903== \r\nHello world! \r\n==8903== \r\n==8903== HEAP SUMMARY:\r\n==8903==     in use at exit: 1,716 bytes in 68 blocks\r\n==8903==   total heap usage: 96 allocs, 28 frees, 2,500 bytes allocated\r\n==8903== \r\n==8903== 30 (24 direct, 6 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 30\r\n==8903==    at 0x4C2AD10: calloc (vg_replace_malloc.c:623)\r\n==8903==    by 0x401EE8: new (object.c:132)\r\n==8903==    by 0x40134E: main (main.c:38)\r\n==8903== \r\n==8903== 31 (24 direct, 7 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 30\r\n==8903==    at 0x4C2AD10: calloc (vg_replace_malloc.c:623)\r\n==8903==    by 0x401EE8: new (object.c:132)\r\n==8903==    by 0x401378: main (main.c:39)\r\n==8903== \r\n==8903== 32 bytes in 1 blocks are definitely lost in loss record 10 of 30\r\n==8903==    at 0x4C2AD10: calloc (vg_replace_malloc.c:623)\r\n==8903==    by 0x401EE8: new (object.c:132)\r\n==8903==    by 0x4013A7: main (main.c:41)\r\n==8903== \r\n==8903== 37 (24 direct, 13 indirect) bytes in 1 blocks are definitely lost in loss record 12 of 30\r\n==8903==    at 0x4C2AD10: calloc (vg_replace_malloc.c:623)\r\n==8903==    by 0x401EE8: new (object.c:132)\r\n==8903==    by 0x40123E: main (main.c:28)\r\n==8903== \r\n==8903== LEAK SUMMARY:\r\n==8903==    definitely lost: 104 bytes in 4 blocks\r\n==8903==    indirectly lost: 26 bytes in 3 blocks\r\n==8903==      possibly lost: 0 bytes in 0 blocks\r\n==8903==    still reachable: 1,586 bytes in 61 blocks\r\n==8903==         suppressed: 0 bytes in 0 blocks\r\n==8903== Reachable blocks (those to which a pointer was found) are not shown.\r\n==8903== To see them, rerun with: --leak-check=full --show-leak-kinds=all\r\n==8903== \r\n==8903== For counts of detected and suppressed errors, rerun with: -v\r\n==8903== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)\r\n```"}}