schedsvc: Fix xml buffer leak (Valgrind).