Changed k_list_init() implementation and added k_list_free().