From 74b3b505c95072ed2e54b2079f4f1a7f40e8942f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 24 Jun 2020 18:39:21 +0200 Subject: [PATCH] This part of the code looked suspicious and was leaking memory for one codepath --- libretro-common/file/archive_file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/file/archive_file.c b/libretro-common/file/archive_file.c index 9bb4aa0ac3..3fa52b07f2 100644 --- a/libretro-common/file/archive_file.c +++ b/libretro-common/file/archive_file.c @@ -342,15 +342,13 @@ end: { #ifdef HAVE_7ZIP if (handle->backend != &sevenzip_backend) +#endif { handle->backend->stream_free(handle->stream); if (handle->data) free(handle->data); } -#else - handle->backend->stream_free(handle->stream); -#endif } } }