diff src/libpst.c @ 85:582e927756d3 stable-0-6-15

Patch from Robert Simpson for file handle leak in error case. Fix for missing length on lz decompression, bug found by Chris White.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2008 22:01:52 -0700
parents 56fa05fd5271
children 3ec5ad97e926
line wrap: on
line diff
--- a/src/libpst.c	Sun Jun 15 07:00:54 2008 -0700
+++ b/src/libpst.c	Wed Jul 30 22:01:52 2008 -0700
@@ -202,6 +202,7 @@
             pf->do_read64 = 1;
             break;
         default:
+            (void)fclose(pf->fp);
             WARN(("unknown .pst format, possibly newer than Outlook 2003 PST file?\n"));
             DEBUG_RET();
             return -1;