Add an element free function to crn_list_destroy.

If the free function is set, it frees the memory which element holding.