diff options
Diffstat (limited to 'src/common/text.c')
-rw-r--r-- | src/common/text.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/text.c b/src/common/text.c index 1afb0c18..a01fc2c8 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -1659,7 +1659,10 @@ pevent_load (char *filename) if (fd == -1) return 1; if (fstat (fd, &st) != 0) + { + close (fd); return 1; + } ibuf = malloc (st.st_size); read (fd, ibuf, st.st_size); close (fd); |