{"action":"created","issue":{"url":"https://api.github.com/repos/scylladb/scylla/issues/606","labels_url":"https://api.github.com/repos/scylladb/scylla/issues/606/labels{/name}","comments_url":"https://api.github.com/repos/scylladb/scylla/issues/606/comments","events_url":"https://api.github.com/repos/scylladb/scylla/issues/606/events","html_url":"https://github.com/scylladb/scylla/issues/606","id":118658797,"number":606,"title":"bytes_ostream violates new/delete symmetry","user":{"login":"avikivity","id":1017210,"avatar_url":"https://avatars.githubusercontent.com/u/1017210?v=3","gravatar_id":"","url":"https://api.github.com/users/avikivity","html_url":"https://github.com/avikivity","followers_url":"https://api.github.com/users/avikivity/followers","following_url":"https://api.github.com/users/avikivity/following{/other_user}","gists_url":"https://api.github.com/users/avikivity/gists{/gist_id}","starred_url":"https://api.github.com/users/avikivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avikivity/subscriptions","organizations_url":"https://api.github.com/users/avikivity/orgs","repos_url":"https://api.github.com/users/avikivity/repos","events_url":"https://api.github.com/users/avikivity/events{/privacy}","received_events_url":"https://api.github.com/users/avikivity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-24T17:10:14Z","updated_at":"2015-12-21T13:46:03Z","closed_at":null,"body":"```\r\n            auto alloc_size = size <= usable_chunk_size ? chunk_size : (size + sizeof(chunk));\r\n            auto space = malloc(alloc_size);\r\n            if (!space) {\r\n                throw std::bad_alloc();\r\n            }\r\n            auto new_chunk = std::unique_ptr<chunk>(new (space) chunk());\r\n```\r\n\r\nshould use equivalent of unique_ptr<chunk, decltype([] (void* ptr) { ::free(ptr); })>\r\n"},"comment":{"url":"https://api.github.com/repos/scylladb/scylla/issues/comments/166308918","html_url":"https://github.com/scylladb/scylla/issues/606#issuecomment-166308918","issue_url":"https://api.github.com/repos/scylladb/scylla/issues/606","id":166308918,"user":{"login":"avikivity","id":1017210,"avatar_url":"https://avatars.githubusercontent.com/u/1017210?v=3","gravatar_id":"","url":"https://api.github.com/users/avikivity","html_url":"https://github.com/avikivity","followers_url":"https://api.github.com/users/avikivity/followers","following_url":"https://api.github.com/users/avikivity/following{/other_user}","gists_url":"https://api.github.com/users/avikivity/gists{/gist_id}","starred_url":"https://api.github.com/users/avikivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avikivity/subscriptions","organizations_url":"https://api.github.com/users/avikivity/orgs","repos_url":"https://api.github.com/users/avikivity/repos","events_url":"https://api.github.com/users/avikivity/events{/privacy}","received_events_url":"https://api.github.com/users/avikivity/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T13:46:03Z","updated_at":"2015-12-21T13:46:03Z","body":"No."}}