{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1821","repository_url":"https://api.github.com/repos/sass/libsass","labels_url":"https://api.github.com/repos/sass/libsass/issues/1821/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1821/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1821/events","html_url":"https://github.com/sass/libsass/pull/1821","id":124539923,"number":1821,"title":"API: Provides a function to clone string","user":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/libsass/labels/C%20API","name":"C API","color":"c7def8"},{"url":"https://api.github.com/repos/sass/libsass/labels/Community","name":"Community","color":"eb6420"},{"url":"https://api.github.com/repos/sass/libsass/labels/Feature%20-%20Request","name":"Feature - Request","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sass/libsass/milestones/17","html_url":"https://github.com/sass/libsass/milestones/3.3.5","labels_url":"https://api.github.com/repos/sass/libsass/milestones/17/labels","id":1601011,"number":17,"title":"3.3.5","description":"- Next iteration with refactoring to match ruby sass 4.0.0 parsing and output","creator":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":17,"state":"open","created_at":"2016-02-23T20:45:37Z","updated_at":"2016-04-06T02:18:05Z","due_on":"2016-05-19T22:00:00Z","closed_at":null},"comments":22,"created_at":"2016-01-01T10:43:26Z","updated_at":"2016-04-06T02:18:05Z","closed_at":"2016-04-06T02:18:05Z","pull_request":{"url":"https://api.github.com/repos/sass/libsass/pulls/1821","html_url":"https://github.com/sass/libsass/pull/1821","diff_url":"https://github.com/sass/libsass/pull/1821.diff","patch_url":"https://github.com/sass/libsass/pull/1821.patch"},"body":"From the pure API usage (as in FFI), there is a limitation in case of\r\n`sass_make_data_context`, where API requires the caller to allocate the\r\nmemory and transfer the ownership to libsass, so libsass will\r\ndestroy it afterwards. In case of FFI, despite the provision of\r\ninteroperability, the memory allocated by language runtime may not be\r\ndeallocatable by CRT, and it corrupts the heap on `free()`ing the\r\nresources.\r\n\r\nThis utility method equips the caller to get the cloned string ptr back\r\nfrom CRT and use it to make data context."},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/206082982","html_url":"https://github.com/sass/libsass/pull/1821#issuecomment-206082982","issue_url":"https://api.github.com/repos/sass/libsass/issues/1821","id":206082982,"user":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T02:18:05Z","updated_at":"2016-04-06T02:18:05Z","body":"I created a proposal in https://github.com/sass/libsass/pull/1983. Waiting for feedback!\r\nThanks for the contributions and feedbacks here (@am11 et al)!"}}