format: Unify support_format error handling
Always return r to unify style for easier audits. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
This commit is contained in:
1 parent
d42b4c1999
commit
cb3cd6f09c
3 files changed
+6
-12
No files matched your search
@@ -125,11 +125,9 @@ archive_read_support_format_ar(struct archive *_a)
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
if (r != ARCHIVE_OK) {
|
||||
if (r != ARCHIVE_OK)
|
||||
free(ar);
|
||||
return (r);
|
||||
}
|
||||
return (ARCHIVE_OK);
|
||||
return (r);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -491,11 +491,9 @@ archive_read_support_format_iso9660(struct archive *_a)
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
if (r != ARCHIVE_OK) {
|
||||
if (r != ARCHIVE_OK)
|
||||
free(iso9660);
|
||||
return (r);
|
||||
}
|
||||
return (ARCHIVE_OK);
|
||||
return (r);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -168,11 +168,9 @@ archive_read_support_format_warc(struct archive *_a)
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
if (r != ARCHIVE_OK) {
|
||||
if (r != ARCHIVE_OK)
|
||||
free(warc);
|
||||
return (r);
|
||||
}
|
||||
return (ARCHIVE_OK);
|
||||
return (r);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in new issue
Block a user