There's certainly more than 0 risk.
I do hiring at my company. If a candidate showed me non-public code during an interview, they're an immediate no hire. Interview is immediately over. This isn't my personal preference or anything either. It's specifically in our interview training.
It demonstrates a clear inability to protect company IP. That's a big deal. Especially if you're a publicly traded company.