This part of the code looked suspicious and was leaking memory

for one codepath
This commit is contained in:
twinaphex 2020-06-24 18:39:21 +02:00
parent 3a4af3149b
commit 74b3b505c9

View File

@ -342,15 +342,13 @@ end:
{ {
#ifdef HAVE_7ZIP #ifdef HAVE_7ZIP
if (handle->backend != &sevenzip_backend) if (handle->backend != &sevenzip_backend)
#endif
{ {
handle->backend->stream_free(handle->stream); handle->backend->stream_free(handle->stream);
if (handle->data) if (handle->data)
free(handle->data); free(handle->data);
} }
#else
handle->backend->stream_free(handle->stream);
#endif
} }
} }
} }