{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/402","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/402/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/402/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/402","id":59377139,"number":402,"title":"Possible Memory Leak?","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-HTTP","name":"Component-HTTP","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Milestone-Version1.10.0","name":"Milestone-Version1.10.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-01T04:08:08Z","updated_at":"2015-03-01T04:08:10Z","closed_at":"2015-03-01T04:08:08Z","body":"```\nVersion of google-api-java-client 1.6?\nJava environment Java 6, Android 2.3\n\nFrom Calendar API generated code in Calendar.java:\n   public com.google.api.services.calendar.model.FreeBusyResponse execute() throws IOException {\n    HttpResponse response = executeUnparsed();\n\n    com.google.api.services.calendar.model.FreeBusyResponse result = response.parseAs(\n        com.google.api.services.calendar.model.FreeBusyResponse.class);\n    result.setResponseHeaders(response.getHeaders());\n    return result;\n  }\n\nWe open an HttpResponse object but we never disconnect it.\n\n```\n\nOriginal issue reported on code.google.com by `aalb...@google.com` on 3 Feb 2012 at 7:32"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76572330","html_url":"https://github.com/chrsmith/google-api-java-client/issues/402#issuecomment-76572330","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/402","id":76572330,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T04:08:09Z","updated_at":"2015-03-01T04:08:09Z","body":"```\nYikes\n\nCalling response.disconnect() throws a NPE because in HttpResponse.java:\n\n  public InputStream getContent() throws IOException {\n    LowLevelHttpResponse response = this.response;\n    if (response == null) {\n      return content;\n    }\n    InputStream content = this.response.getContent();\n    this.response = null;\n\n\nWe set the internal response to null.\n```\n\nOriginal comment by `aalb...@google.com` on 3 Feb 2012 at 8:06"}}