projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a79d81c
)
zip-reader: Fix file descriptor leak in zip_reader_create().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 23 Jan 2021 22:37:27 +0000
(14:37 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 25 Jan 2021 04:51:45 +0000
(20:51 -0800)
src/libpspp/zip-reader.c
patch
|
blob
|
history
diff --git
a/src/libpspp/zip-reader.c
b/src/libpspp/zip-reader.c
index 9f209995522dcb055f60a2842efb839f1cb91815..8868c7db338918a36d53bccb0354480c3997c64a 100644
(file)
--- a/
src/libpspp/zip-reader.c
+++ b/
src/libpspp/zip-reader.c
@@
-388,6
+388,7
@@
zip_reader_create (const char *file_name, struct string *errs)
zr->n_entries++;
}
+ fclose (file);
return zr;
}