change back release_weight_vectors to SG_FREE