When trying to add a new element into an empty cp_list, cp_list_append crashes and cp_list_insert must be used. As Valgrind reports, it seems to be trying to access some already free'd memory.
Log in to post a comment.