{"action":"created","issue":{"url":"https://api.github.com/repos/twall/jna/issues/450","labels_url":"https://api.github.com/repos/twall/jna/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/twall/jna/issues/450/comments","events_url":"https://api.github.com/repos/twall/jna/issues/450/events","html_url":"https://github.com/twall/jna/pull/450","id":83516030,"number":450,"title":"Cleanup of temporarily extracted files in case of errors","user":{"login":"aschnab","id":12696395,"avatar_url":"https://avatars.githubusercontent.com/u/12696395?v=3","gravatar_id":"","url":"https://api.github.com/users/aschnab","html_url":"https://github.com/aschnab","followers_url":"https://api.github.com/users/aschnab/followers","following_url":"https://api.github.com/users/aschnab/following{/other_user}","gists_url":"https://api.github.com/users/aschnab/gists{/gist_id}","starred_url":"https://api.github.com/users/aschnab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschnab/subscriptions","organizations_url":"https://api.github.com/users/aschnab/orgs","repos_url":"https://api.github.com/users/aschnab/repos","events_url":"https://api.github.com/users/aschnab/events{/privacy}","received_events_url":"https://api.github.com/users/aschnab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-01T14:06:22Z","updated_at":"2015-06-02T12:48:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/twall/jna/pulls/450","html_url":"https://github.com/twall/jna/pull/450","diff_url":"https://github.com/twall/jna/pull/450.diff","patch_url":"https://github.com/twall/jna/pull/450.patch"},"body":"If an Exception/UnsatisfiedLinkError is thrown during the Native.open() call on a library file that has been extracted from the resource path, the extracted library file is not immediately cleaned up: the files only disappear once the using application shuts down, thanks to the deleteOnExit() called upon them in Native.extractFromResourcePath(). However, if the using application keeps (unsuccessfully) retrying to call Native.loadLibrary(), this can fill up the temporary JNA directory rather quickly.\r\n\r\nThis little change should counteract this scenario."},"comment":{"url":"https://api.github.com/repos/twall/jna/issues/comments/107942314","html_url":"https://github.com/twall/jna/pull/450#issuecomment-107942314","issue_url":"https://api.github.com/repos/twall/jna/issues/450","id":107942314,"user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T12:48:06Z","updated_at":"2015-06-02T12:48:06Z","body":"Nice work @aschnab."}}