Once you have rights to your code (and use a lawyer), you should use it for the benefit of yourself.
Open sourcing it is your decision, based on what's good for you.