Fix for issue #929 and #930

Release SGVector gaussian sample in CDataGenerator::generate_gaussians