commit | a7df055c76d0a8b6586be0d799c1eb6f7e258863 | [log] [tgz] |
---|---|---|
author | Thomas Klausner <tk@giga.or.at> | Tue Jan 27 14:58:33 2015 +0100 |
committer | Thomas Klausner <tk@giga.or.at> | Tue Jan 27 14:58:33 2015 +0100 |
tree | 9ceb8428f1eef42b70f00989b9a0428d145cb164 | |
parent | dfde87ca07ab79e26c55a9fcfe4ecb52ec4ff527 [diff] [blame] |
Free fname on errors.
diff --git a/lib/zip_source_filep.c b/lib/zip_source_filep.c index 326e536..e838506 100644 --- a/lib/zip_source_filep.c +++ b/lib/zip_source_filep.c
@@ -141,6 +141,7 @@ } if ((zs=zip_source_function_create(read_file, ctx, error)) == NULL) { + free(ctx->fname); free(ctx); return NULL; }