than once.
SVN-Revision: 162
ar = (struct ar_w *)a->format_data;
+ if (ar == NULL)
+ return (ARCHIVE_OK);
+
if (ar->has_strtab > 0) {
free(ar->strtab);
ar->strtab = NULL;
struct pax *pax;
pax = (struct pax *)a->format_data;
+ if (pax == NULL)
+ return (ARCHIVE_OK);
+
archive_string_free(&pax->pax_header);
free(pax);
a->format_data = NULL;
struct shar *shar;
shar = (struct shar *)a->format_data;
+ if (shar == NULL)
+ return (ARCHIVE_OK);
if (shar->entry != NULL)
archive_entry_free(shar->entry);
if (shar->last_dir != NULL)