Use freeList() instead of free() to free all elements in the list.
Attach a file by drag & drop or click to upload