I am unsure about the use of ```free_feature_vector``` here. Could you please argument why do we need it? Note that SGVector and SGMatrix have internal automatic reference counting, and it is normally not necessary to free their memory by hand.