* fixed a  double free error that could happen with the "list_clear" function
changed size value from int * to int