{"action":"created","issue":{"url":"https://api.github.com/repos/babelouest/ulfius/issues/44","repository_url":"https://api.github.com/repos/babelouest/ulfius","labels_url":"https://api.github.com/repos/babelouest/ulfius/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/babelouest/ulfius/issues/44/comments","events_url":"https://api.github.com/repos/babelouest/ulfius/issues/44/events","html_url":"https://github.com/babelouest/ulfius/issues/44","id":305875523,"number":44,"title":"memory issue with websocket example","user":{"login":"mmardinian","id":32199939,"avatar_url":"https://avatars3.githubusercontent.com/u/32199939?v=4","gravatar_id":"","url":"https://api.github.com/users/mmardinian","html_url":"https://github.com/mmardinian","followers_url":"https://api.github.com/users/mmardinian/followers","following_url":"https://api.github.com/users/mmardinian/following{/other_user}","gists_url":"https://api.github.com/users/mmardinian/gists{/gist_id}","starred_url":"https://api.github.com/users/mmardinian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmardinian/subscriptions","organizations_url":"https://api.github.com/users/mmardinian/orgs","repos_url":"https://api.github.com/users/mmardinian/repos","events_url":"https://api.github.com/users/mmardinian/events{/privacy}","received_events_url":"https://api.github.com/users/mmardinian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-16T10:27:30Z","updated_at":"2018-03-17T12:55:49Z","closed_at":null,"author_association":"NONE","body":"Hi Nicolas,\r\n\r\nIn the websocket example, when the websocket is created, we give user data:\r\n\"char * websocket_user_data = \"my_user_data\";\"\r\nBut when this data is read in the callback functions, the 4 firsts bytes have been overwritten.\r\n\r\nI managed to solve this issue, declaring the variable websocket_user_data as a global variable (getting it out of the function).\r\n\r\nFor your information, I work on an arm target. So this may come from my compiler.\r\n\r\nThank you for your work."},"comment":{"url":"https://api.github.com/repos/babelouest/ulfius/issues/comments/373918070","html_url":"https://github.com/babelouest/ulfius/issues/44#issuecomment-373918070","issue_url":"https://api.github.com/repos/babelouest/ulfius/issues/44","id":373918070,"user":{"login":"babelouest","id":3966617,"avatar_url":"https://avatars2.githubusercontent.com/u/3966617?v=4","gravatar_id":"","url":"https://api.github.com/users/babelouest","html_url":"https://github.com/babelouest","followers_url":"https://api.github.com/users/babelouest/followers","following_url":"https://api.github.com/users/babelouest/following{/other_user}","gists_url":"https://api.github.com/users/babelouest/gists{/gist_id}","starred_url":"https://api.github.com/users/babelouest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babelouest/subscriptions","organizations_url":"https://api.github.com/users/babelouest/orgs","repos_url":"https://api.github.com/users/babelouest/repos","events_url":"https://api.github.com/users/babelouest/events{/privacy}","received_events_url":"https://api.github.com/users/babelouest/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T12:55:49Z","updated_at":"2018-03-17T12:55:49Z","author_association":"OWNER","body":"Using my last changes on the branch `fix-websocket`, I can't reproduce any memory leak. What compiler are you using?"}}
{"actor":{"display_login":"babelouest"}}