{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/runc/issues/588","repository_url":"https://api.github.com/repos/opencontainers/runc","labels_url":"https://api.github.com/repos/opencontainers/runc/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runc/issues/588/comments","events_url":"https://api.github.com/repos/opencontainers/runc/issues/588/events","html_url":"https://github.com/opencontainers/runc/pull/588","id":136357959,"number":588,"title":"Removing pivot directory in defer","user":{"login":"rajasec","id":8536762,"avatar_url":"https://avatars.githubusercontent.com/u/8536762?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasec","html_url":"https://github.com/rajasec","followers_url":"https://api.github.com/users/rajasec/followers","following_url":"https://api.github.com/users/rajasec/following{/other_user}","gists_url":"https://api.github.com/users/rajasec/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasec/subscriptions","organizations_url":"https://api.github.com/users/rajasec/orgs","repos_url":"https://api.github.com/users/rajasec/repos","events_url":"https://api.github.com/users/rajasec/events{/privacy}","received_events_url":"https://api.github.com/users/rajasec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opencontainers/runc/labels/status/0-triage","name":"status/0-triage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-25T11:18:22Z","updated_at":"2016-02-26T20:48:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencontainers/runc/pulls/588","html_url":"https://github.com/opencontainers/runc/pull/588","diff_url":"https://github.com/opencontainers/runc/pull/588.diff","patch_url":"https://github.com/opencontainers/runc/pull/588.patch"},"body":"os.Remove function is called at the last in the pivotRoot function. There are sys calls being called and upon failure it will return earlier. In that case removal of pivotRoot may not gets called. So added os.Remove during defer\r\n\r\nSigned-off-by: rajasec <rajasec79@gmail.com>"},"comment":{"url":"https://api.github.com/repos/opencontainers/runc/issues/comments/189478472","html_url":"https://github.com/opencontainers/runc/pull/588#issuecomment-189478472","issue_url":"https://api.github.com/repos/opencontainers/runc/issues/588","id":189478472,"user":{"login":"mrunalp","id":53798,"avatar_url":"https://avatars.githubusercontent.com/u/53798?v=3","gravatar_id":"","url":"https://api.github.com/users/mrunalp","html_url":"https://github.com/mrunalp","followers_url":"https://api.github.com/users/mrunalp/followers","following_url":"https://api.github.com/users/mrunalp/following{/other_user}","gists_url":"https://api.github.com/users/mrunalp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrunalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrunalp/subscriptions","organizations_url":"https://api.github.com/users/mrunalp/orgs","repos_url":"https://api.github.com/users/mrunalp/repos","events_url":"https://api.github.com/users/mrunalp/events{/privacy}","received_events_url":"https://api.github.com/users/mrunalp/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T20:48:26Z","updated_at":"2016-02-26T20:48:26Z","body":"LGTM"}}