{"action":"created","issue":{"url":"https://api.github.com/repos/mukulio/MemoryBro/issues/1","repository_url":"https://api.github.com/repos/mukulio/MemoryBro","labels_url":"https://api.github.com/repos/mukulio/MemoryBro/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mukulio/MemoryBro/issues/1/comments","events_url":"https://api.github.com/repos/mukulio/MemoryBro/issues/1/events","html_url":"https://github.com/mukulio/MemoryBro/issues/1","id":146492858,"number":1,"title":"Multiple malloc() statements in for loop","user":{"login":"mukulio","id":6808157,"avatar_url":"https://avatars.githubusercontent.com/u/6808157?v=3","gravatar_id":"","url":"https://api.github.com/users/mukulio","html_url":"https://github.com/mukulio","followers_url":"https://api.github.com/users/mukulio/followers","following_url":"https://api.github.com/users/mukulio/following{/other_user}","gists_url":"https://api.github.com/users/mukulio/gists{/gist_id}","starred_url":"https://api.github.com/users/mukulio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukulio/subscriptions","organizations_url":"https://api.github.com/users/mukulio/orgs","repos_url":"https://api.github.com/users/mukulio/repos","events_url":"https://api.github.com/users/mukulio/events{/privacy}","received_events_url":"https://api.github.com/users/mukulio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mukulio/MemoryBro/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-07T02:46:54Z","updated_at":"2016-04-11T02:41:30Z","closed_at":"2016-04-11T02:41:30Z","body":"Right now only a single malloc()'s count is multiplied by the number of iterations. If a second `malloc()` is written right after it. It is not affected by the for loop. \r\n\r\nNeed to figure out a better way to determine whether or not a given `malloc()` is within a for loop."},"comment":{"url":"https://api.github.com/repos/mukulio/MemoryBro/issues/comments/208130658","html_url":"https://github.com/mukulio/MemoryBro/issues/1#issuecomment-208130658","issue_url":"https://api.github.com/repos/mukulio/MemoryBro/issues/1","id":208130658,"user":{"login":"mukulio","id":6808157,"avatar_url":"https://avatars.githubusercontent.com/u/6808157?v=3","gravatar_id":"","url":"https://api.github.com/users/mukulio","html_url":"https://github.com/mukulio","followers_url":"https://api.github.com/users/mukulio/followers","following_url":"https://api.github.com/users/mukulio/following{/other_user}","gists_url":"https://api.github.com/users/mukulio/gists{/gist_id}","starred_url":"https://api.github.com/users/mukulio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukulio/subscriptions","organizations_url":"https://api.github.com/users/mukulio/orgs","repos_url":"https://api.github.com/users/mukulio/repos","events_url":"https://api.github.com/users/mukulio/events{/privacy}","received_events_url":"https://api.github.com/users/mukulio/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T02:41:30Z","updated_at":"2016-04-11T02:41:30Z","body":"Fixed the issue by completely re-writing the code. Wrote some utility procedures that will scan the code and determine the boundaries of any \"for\" loops that exist. The return value is a list of lists where each internal lists is in the format [ < start_line >, < end_line >, < num_iterations >  ]"}}