Hello Aleksey, There is a memory leak in xmlSecGenerateAndAddID. It does not call xmlFree(id) before returning. I just double checked by doing valgrind as well :) Thanks Nitin __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com