{"action":"opened","issue":{"url":"https://api.github.com/repos/KumarRobotics/imu_vn_100/issues/1","labels_url":"https://api.github.com/repos/KumarRobotics/imu_vn_100/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/KumarRobotics/imu_vn_100/issues/1/comments","events_url":"https://api.github.com/repos/KumarRobotics/imu_vn_100/issues/1/events","html_url":"https://github.com/KumarRobotics/imu_vn_100/issues/1","id":110348797,"number":1,"title":"Suspicious shared_ptr","user":{"login":"versatran01","id":1883423,"avatar_url":"https://avatars.githubusercontent.com/u/1883423?v=3","gravatar_id":"","url":"https://api.github.com/users/versatran01","html_url":"https://github.com/versatran01","followers_url":"https://api.github.com/users/versatran01/followers","following_url":"https://api.github.com/users/versatran01/following{/other_user}","gists_url":"https://api.github.com/users/versatran01/gists{/gist_id}","starred_url":"https://api.github.com/users/versatran01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/versatran01/subscriptions","organizations_url":"https://api.github.com/users/versatran01/orgs","repos_url":"https://api.github.com/users/versatran01/repos","events_url":"https://api.github.com/users/versatran01/events{/privacy}","received_events_url":"https://api.github.com/users/versatran01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T00:32:53Z","updated_at":"2015-10-08T00:32:53Z","closed_at":null,"body":"May be I'm wrong, but all those\r\n\"\"\"\r\npub_temp = nh.advertise<sensor_msgs::Temperature>(\"temperature\", 1);\r\npub_temp_ptr = boost::shared_ptr<ros::Publisher>(&pub_temp);\r\n\"\"\"\r\nlook very suspicious/dangerous to me.\r\n\r\nOne workaround is to use a custom null deleter. Or maybe just use plain pointer?\r\n"}}