afc_file_open and afc_file_tell memory leaks

`afc_file_open` leaks if it returns early. `arc_file_tell` allocates unused memory and it does not need to check a pointer for NULL before calling `free`.