I think there are more than a few countries where this sort of thing could easily happen. Tech talks get canceled at the behest of the powers that be with some regularity, I don't think requests to take down source code would be out of the question.
https://www.washingtonpost.com/blogs/the-switch/wp/2014/07/2...
http://www.csoonline.com/article/2947377/network-security/pr...