Accept free_function
Pass NULL as the free_function on the main example