commit | 96cc48d6c8dd03c3d71c4b7bd51dfc44dfeb56f2 | [log] [tgz] |
---|---|---|
author | Thomas Klausner <tk@giga.or.at> | Wed Apr 22 21:48:44 2015 +0200 |
committer | Thomas Klausner <tk@giga.or.at> | Wed Apr 22 21:48:44 2015 +0200 |
tree | 369d313e619f5d259ca9e40e2727dff35f57f98f | |
parent | 53b87c8f3642324da06037b0eadf3a648740abc5 [diff] |
Fix file descriptor leak in error case. Coverity CID 1295389.
diff --git a/regress/modify.c b/regress/modify.c index ae49c6b..c79de64 100644 --- a/regress/modify.c +++ b/regress/modify.c
@@ -628,6 +628,7 @@ } if (fread(buf, (size_t)st.st_size, 1, fp) < 1) { free(buf); + fclose(fp); *err = ZIP_ER_READ; return NULL; }