memory leak with license