commit | 7da8ac3b29e60d28c7b5405a0aeaee6ff57eb3ea | [log] [tgz] |
---|---|---|
author | Antonin Décimo <antonin.decimo@gmail.com> | Fri Jun 05 14:03:19 2020 +0200 |
committer | Antonin Décimo <antonin.decimo@gmail.com> | Fri Jun 05 14:39:27 2020 +0200 |
tree | b844d7ed3c9ac66a72df0dbf86601cd46185afc1 | |
parent | 6989e052ac8b431a7127fa45e7695c0a7afc78f9 [diff] |
Free pointer in error path
diff --git a/lib/zip_source_file_stdio_named.c b/lib/zip_source_file_stdio_named.c index 84f57a4..36fee45 100644 --- a/lib/zip_source_file_stdio_named.c +++ b/lib/zip_source_file_stdio_named.c
@@ -206,6 +206,7 @@ if (fstat(fileno(ctx->f), &st) < 0) { zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno); + free(temp); return -1; }