From 1389dcfe6bb2e820f7f85180a64968420df93a9a Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 19 Jun 2020 11:37:36 -0400 Subject: [PATCH] fix(core): no need to call zip_discard, it's handled in zip_close --- SoObjects/SOGo/SOGoZipArchiver.m | 1 - 1 file changed, 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoZipArchiver.m b/SoObjects/SOGo/SOGoZipArchiver.m index 27e0337de..4c7315426 100644 --- a/SoObjects/SOGo/SOGoZipArchiver.m +++ b/SoObjects/SOGo/SOGoZipArchiver.m @@ -107,7 +107,6 @@ if (self->z != NULL) { if (zip_close(self->z) != 0) { NSLog(@"Failed to close zip archive: %@", [NSString stringWithCString: zip_strerror(self->z)]); - zip_discard(self->z); success = NO; } self->z = NULL;