{"action":"created","issue":{"url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/8","repository_url":"https://api.github.com/repos/EnachescuAlin/PhiChat","labels_url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/8/comments","events_url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/8/events","html_url":"https://github.com/EnachescuAlin/PhiChat/issues/8","id":147687328,"number":8,"title":"Memory leaks ReadConfig()","user":{"login":"EnachescuAlin","id":6330622,"avatar_url":"https://avatars.githubusercontent.com/u/6330622?v=3","gravatar_id":"","url":"https://api.github.com/users/EnachescuAlin","html_url":"https://github.com/EnachescuAlin","followers_url":"https://api.github.com/users/EnachescuAlin/followers","following_url":"https://api.github.com/users/EnachescuAlin/following{/other_user}","gists_url":"https://api.github.com/users/EnachescuAlin/gists{/gist_id}","starred_url":"https://api.github.com/users/EnachescuAlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnachescuAlin/subscriptions","organizations_url":"https://api.github.com/users/EnachescuAlin/orgs","repos_url":"https://api.github.com/users/EnachescuAlin/repos","events_url":"https://api.github.com/users/EnachescuAlin/events{/privacy}","received_events_url":"https://api.github.com/users/EnachescuAlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JustBeYou","id":10727813,"avatar_url":"https://avatars.githubusercontent.com/u/10727813?v=3","gravatar_id":"","url":"https://api.github.com/users/JustBeYou","html_url":"https://github.com/JustBeYou","followers_url":"https://api.github.com/users/JustBeYou/followers","following_url":"https://api.github.com/users/JustBeYou/following{/other_user}","gists_url":"https://api.github.com/users/JustBeYou/gists{/gist_id}","starred_url":"https://api.github.com/users/JustBeYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustBeYou/subscriptions","organizations_url":"https://api.github.com/users/JustBeYou/orgs","repos_url":"https://api.github.com/users/JustBeYou/repos","events_url":"https://api.github.com/users/JustBeYou/events{/privacy}","received_events_url":"https://api.github.com/users/JustBeYou/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-04-12T09:16:19Z","updated_at":"2016-04-12T13:47:30Z","closed_at":null,"body":"In the ReadConfig function (from Config.c) are memory leaks. These must resolved."},"comment":{"url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/comments/208914196","html_url":"https://github.com/EnachescuAlin/PhiChat/issues/8#issuecomment-208914196","issue_url":"https://api.github.com/repos/EnachescuAlin/PhiChat/issues/8","id":208914196,"user":{"login":"JustBeYou","id":10727813,"avatar_url":"https://avatars.githubusercontent.com/u/10727813?v=3","gravatar_id":"","url":"https://api.github.com/users/JustBeYou","html_url":"https://github.com/JustBeYou","followers_url":"https://api.github.com/users/JustBeYou/followers","following_url":"https://api.github.com/users/JustBeYou/following{/other_user}","gists_url":"https://api.github.com/users/JustBeYou/gists{/gist_id}","starred_url":"https://api.github.com/users/JustBeYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustBeYou/subscriptions","organizations_url":"https://api.github.com/users/JustBeYou/orgs","repos_url":"https://api.github.com/users/JustBeYou/repos","events_url":"https://api.github.com/users/JustBeYou/events{/privacy}","received_events_url":"https://api.github.com/users/JustBeYou/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T13:47:30Z","updated_at":"2016-04-12T13:47:30Z","body":"I solved the LEX memory leak too by using yylex_destroy function, but there is still a memory leak from standard library.\r\n```\r\nlittlewho@littlewho:~/Desktop/sourcecode/PhiChat$ valgrind --leak-check=full --show-leak-kinds=all ./phiChat server.config\r\n==22679== Memcheck, a memory error detector\r\n==22679== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.\r\n==22679== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info\r\n==22679== Command: ./phiChat server.config\r\n==22679== \r\nInitializing output mode...\r\n2016:04:12 16:42:33 : Output mode was initialized successfully\r\n2016:04:12 16:42:33 : Reading configuration file...\r\n2016:04:12 16:42:33 : Configuration file is right\r\nexit\r\nexit\r\n==22679== \r\n==22679== HEAP SUMMARY:\r\n==22679==     in use at exit: 72,704 bytes in 1 blocks\r\n==22679==   total heap usage: 25 allocs, 24 frees, 102,324 bytes allocated\r\n==22679== \r\n==22679== 72,704 bytes in 1 blocks are still reachable in loss record 1 of 1\r\n==22679==    at 0x4C2ABD0: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==22679==    by 0x6A2CE7F: pool (eh_alloc.cc:117)\r\n==22679==    by 0x6A2CE7F: __static_initialization_and_destruction_0 (eh_alloc.cc:244)\r\n==22679==    by 0x6A2CE7F: _GLOBAL__sub_I_eh_alloc.cc (eh_alloc.cc:307)\r\n==22679==    by 0x400F3B9: call_init.part.0 (in /usr/lib/ld-2.23.so)\r\n==22679==    by 0x400F4CA: _dl_init (in /usr/lib/ld-2.23.so)\r\n==22679==    by 0x4000DC9: ??? (in /usr/lib/ld-2.23.so)\r\n==22679==    by 0x1: ???\r\n==22679==    by 0xFFEFFFFF6: ???\r\n==22679==    by 0xFFF000000: ???\r\n==22679== \r\n==22679== LEAK SUMMARY:\r\n==22679==    definitely lost: 0 bytes in 0 blocks\r\n==22679==    indirectly lost: 0 bytes in 0 blocks\r\n==22679==      possibly lost: 0 bytes in 0 blocks\r\n==22679==    still reachable: 72,704 bytes in 1 blocks\r\n==22679==         suppressed: 0 bytes in 0 blocks\r\n==22679== \r\n==22679== For counts of detected and suppressed errors, rerun with: -v\r\n==22679== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\r\n```"}}