Fix memory leak in add_subclass() found by NealN with valgrind.
Will backport.
1 file changed