I think that you should check the value of ```dofree``` before doing this. Please check the Doxygen doc of ```get_feature_vector```.