Fix subject name memory leak.