Fixed leak of dynamically-allocated data.