{"action":"closed","issue":{"url":"https://api.github.com/repos/brianmario/mysql2/issues/700","labels_url":"https://api.github.com/repos/brianmario/mysql2/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/brianmario/mysql2/issues/700/comments","events_url":"https://api.github.com/repos/brianmario/mysql2/issues/700/events","html_url":"https://github.com/brianmario/mysql2/issues/700","id":117940554,"number":700,"title":"memory leak with 0.4.1","user":{"login":"darix","id":230233,"avatar_url":"https://avatars.githubusercontent.com/u/230233?v=3","gravatar_id":"","url":"https://api.github.com/users/darix","html_url":"https://github.com/darix","followers_url":"https://api.github.com/users/darix/followers","following_url":"https://api.github.com/users/darix/following{/other_user}","gists_url":"https://api.github.com/users/darix/gists{/gist_id}","starred_url":"https://api.github.com/users/darix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darix/subscriptions","organizations_url":"https://api.github.com/users/darix/orgs","repos_url":"https://api.github.com/users/darix/repos","events_url":"https://api.github.com/users/darix/events{/privacy}","received_events_url":"https://api.github.com/users/darix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-20T00:34:29Z","updated_at":"2015-11-20T19:47:16Z","closed_at":"2015-11-20T19:47:16Z","body":"0.4.1 has growing memory usage, while 0.4.0 has a stable memory usage.\r\n\r\n```ruby\r\n#!/usr/bin/ruby\r\n#\r\n# create user 'clustercheck'@'localhost' identified by 'foobar1';\r\n#\r\ngem 'mysql2', '0.4.1'\r\nrequire 'mysql2'\r\nj=0\r\nwhile (j < 100000) do\r\n  client= Mysql2::Client.new(host: 'localhost', port: 3306, username: 'clustercheck', password: 'foobar1')\r\n  client.close\r\nend\r\n```"}}