Advisor professor asking me for the source code of my dissertation in order to be used by another student I finished my master's degree (Computer Science) a short time ago, and I don't currently plan to continue my academic studies.

My adviser asked me for the source code of the application I developed for my final paper (and for which I received a perfect score) in order for one of students they currently advise to continue my work as part of their bachelor's final project.

This question is similar to this one Advisor professor asks for my dissertation research source code. The difference is that my work will be used (continued?) by another student as part of their final paper.

Should I do this or is there any reason for me to be concerned about this?

Update

To provide some clarification. I was not paid for the work that I did for my paper. (however I also did not pay for my master studies in case this matters). I put a significant amount of time into this (by my standards at least) around 5 months. Also, my paper was not submitted in an article, journal etc. It was only submitted to the university (without the code), and then I defended my work in front of a committee. This paper/project is the work based on which the diploma is given. The mark received for this is noted on the diploma.

In the end decided to make the repository public (with a license). 
Thanks for all the answers, they made me realize that learning is based on sharing.
You developed the code as part of your curriculum. It's quite possible that therefore, the source code belongs to the university anyway. This does depend on the laws of the country your university is in.

Also, I don't see what you should be concerned about. Someone else building on your work is exactly how science is supposed to proceed. If I were you, I'd take the request as a compliment.