structure whenever the file entry had a garbage CE offset.
SVN-Revision: 389
/* Get the next entry that appears after the current offset. */
r = next_entry_seek(a, iso9660, &file);
- if (r != ARCHIVE_OK)
+ if (r != ARCHIVE_OK) {
+ release_file(iso9660, file);
return (r);
+ }
iso9660->entry_bytes_remaining = file->size;
iso9660->entry_sparse_offset = 0; /* Offset for sparse-file-aware clients. */
{
struct file_info *parent;
+ if (file == NULL)
+ return;
+
if (file->refcount == 0) {
parent = file->parent;
archive_string_free(&file->name);