yeah sure you have to SG_FREE(vec) at the end