> Any comments on free-ing tmp before it is return-ed? Whaaat? That's just begging for nightmares, for you and anyone else that has to deal with or be responsible for such code. You're better off tease a NYC cop with a realistic-looking toy gun -- much safer, and you'll know the outcome immediately. Regards, [Ag]