This also becomes fun if you worked with external contractors, who committed all over the code and the agreement doesn't cover releasing the code.
And then there are still all the other things in open sourcing (making sure comments are appropriate, naming is appropriate, ...)
And then you have IP besides the source, in artwork where designers often have some rights, copyrights, trademarks ...
And after all that the "fear" on your reputation, if one fears the code might seem of low quality, which might reflect bad. (Whether it's truly bad doesn't really matter, a few blog posts or youtube videos of somebody taking worst parts can harm reputation)
It's all simpler, if you plan on doing that eventually from the start, but notable effort for any serious project after the fact.