Yes, the kernel will handle the 'fd' cleanup automatically, but the existing implementation already closes it before exiting.
^^^^^^^ Whoops! I meant 'returning' there. Wording issue on my part :P
We're referring to the same thing! Thanks for detailed response :)
Regards Ritvik