{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/2106","repository_url":"https://api.github.com/repos/ARMmbed/mbedtls","labels_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/2106/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/2106/comments","events_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/2106/events","html_url":"https://github.com/ARMmbed/mbedtls/pull/2106","id":371039556,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNTc2NzY1","number":2106,"title":"x509.c: fix memory leak on self-test","user":{"login":"JunhwanPark","id":27719916,"node_id":"MDQ6VXNlcjI3NzE5OTE2","avatar_url":"https://avatars3.githubusercontent.com/u/27719916?v=4","gravatar_id":"","url":"https://api.github.com/users/JunhwanPark","html_url":"https://github.com/JunhwanPark","followers_url":"https://api.github.com/users/JunhwanPark/followers","following_url":"https://api.github.com/users/JunhwanPark/following{/other_user}","gists_url":"https://api.github.com/users/JunhwanPark/gists{/gist_id}","starred_url":"https://api.github.com/users/JunhwanPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunhwanPark/subscriptions","organizations_url":"https://api.github.com/users/JunhwanPark/orgs","repos_url":"https://api.github.com/users/JunhwanPark/repos","events_url":"https://api.github.com/users/JunhwanPark/events{/privacy}","received_events_url":"https://api.github.com/users/JunhwanPark/received_events","type":"User","site_admin":false},"labels":[{"id":276023626,"node_id":"MDU6TGFiZWwyNzYwMjM2MjY=","url":"https://api.github.com/repos/ARMmbed/mbedtls/labels/CLA%20requested","name":"CLA requested","color":"fad8c7","default":false},{"id":19280384,"node_id":"MDU6TGFiZWwxOTI4MDM4NA==","url":"https://api.github.com/repos/ARMmbed/mbedtls/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":937148211,"node_id":"MDU6TGFiZWw5MzcxNDgyMTE=","url":"https://api.github.com/repos/ARMmbed/mbedtls/labels/component:%20X.509","name":"component: X.509","color":"CEF6F5","default":false},{"id":435765575,"node_id":"MDU6TGFiZWw0MzU3NjU1NzU=","url":"https://api.github.com/repos/ARMmbed/mbedtls/labels/needs:%20work","name":"needs: work","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"hanno-arm","id":26892988,"node_id":"MDQ6VXNlcjI2ODkyOTg4","avatar_url":"https://avatars1.githubusercontent.com/u/26892988?v=4","gravatar_id":"","url":"https://api.github.com/users/hanno-arm","html_url":"https://github.com/hanno-arm","followers_url":"https://api.github.com/users/hanno-arm/followers","following_url":"https://api.github.com/users/hanno-arm/following{/other_user}","gists_url":"https://api.github.com/users/hanno-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/hanno-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanno-arm/subscriptions","organizations_url":"https://api.github.com/users/hanno-arm/orgs","repos_url":"https://api.github.com/users/hanno-arm/repos","events_url":"https://api.github.com/users/hanno-arm/events{/privacy}","received_events_url":"https://api.github.com/users/hanno-arm/received_events","type":"User","site_admin":false},"assignees":[{"login":"hanno-arm","id":26892988,"node_id":"MDQ6VXNlcjI2ODkyOTg4","avatar_url":"https://avatars1.githubusercontent.com/u/26892988?v=4","gravatar_id":"","url":"https://api.github.com/users/hanno-arm","html_url":"https://github.com/hanno-arm","followers_url":"https://api.github.com/users/hanno-arm/followers","following_url":"https://api.github.com/users/hanno-arm/following{/other_user}","gists_url":"https://api.github.com/users/hanno-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/hanno-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanno-arm/subscriptions","organizations_url":"https://api.github.com/users/hanno-arm/orgs","repos_url":"https://api.github.com/users/hanno-arm/repos","events_url":"https://api.github.com/users/hanno-arm/events{/privacy}","received_events_url":"https://api.github.com/users/hanno-arm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-17T12:06:32Z","updated_at":"2018-10-17T14:56:59Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbedtls/pulls/2106","html_url":"https://github.com/ARMmbed/mbedtls/pull/2106","diff_url":"https://github.com/ARMmbed/mbedtls/pull/2106.diff","patch_url":"https://github.com/ARMmbed/mbedtls/pull/2106.patch"},"body":"When the time on the target board is not set, the X.509 verification step self-test may fail. When I checked the memory before and after this test, I could see that there was a leak in some memory.\r\n\r\nSimilar to other self tests, this PR changes using the `goto` command so that buffer free can be performed before returning."},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/comments/430662532","html_url":"https://github.com/ARMmbed/mbedtls/pull/2106#issuecomment-430662532","issue_url":"https://api.github.com/repos/ARMmbed/mbedtls/issues/2106","id":430662532,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY2MjUzMg==","user":{"login":"JunhwanPark","id":27719916,"node_id":"MDQ6VXNlcjI3NzE5OTE2","avatar_url":"https://avatars3.githubusercontent.com/u/27719916?v=4","gravatar_id":"","url":"https://api.github.com/users/JunhwanPark","html_url":"https://github.com/JunhwanPark","followers_url":"https://api.github.com/users/JunhwanPark/followers","following_url":"https://api.github.com/users/JunhwanPark/following{/other_user}","gists_url":"https://api.github.com/users/JunhwanPark/gists{/gist_id}","starred_url":"https://api.github.com/users/JunhwanPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunhwanPark/subscriptions","organizations_url":"https://api.github.com/users/JunhwanPark/orgs","repos_url":"https://api.github.com/users/JunhwanPark/repos","events_url":"https://api.github.com/users/JunhwanPark/events{/privacy}","received_events_url":"https://api.github.com/users/JunhwanPark/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T14:56:59Z","updated_at":"2018-10-17T14:56:59Z","author_association":"NONE","body":"@RonEld \r\nI do not want to submit on behalf of the company. I want to do it for my personal interest.  :)\r\nI also agreed to the site you gave me.\r\n\r\n@hanno-arm \r\nYou are right. I changed `cacert` and `clicert` to initialize at the same time.\r\nThank you."}}
{"actor":{"display_login":"JunhwanPark"}}