welcome to HealthcareMagic
Since you are working in IT and having problems with your memory such things can happen due to work related stress
and pressure.Also long term of routine work can lead to loss of interest in work as well as frustration.This sort of small mental issues lead to a big picture where you will see loss of memory.You will need to find the reason yourself whether you are satisfied with your job or stressed with it.If you feel stressed take a break and see hopefully things should improve.Presently i would also suggest that you do relaxing mental exercises like yoga
for help you can even consult a Psychiatrist
.Discuss if there are any issues with your family.Things will improve as presently no need to worry it is not serious but think now and try to solve the problem.