diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2011-10-06 06:01:12 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2011-10-06 06:01:12 +0000 |
| commit | dacc26abaa8ab61168c45f0716bea144fa8afd14 (patch) | |
| tree | d25590ff6bfc3386fbca9494d26b8761e3d33410 /apptype.c | |
| parent | b873e82fedb8026ff397a976c38d4182a21da706 (diff) | |
Diffstat (limited to 'apptype.c')
| -rw-r--r-- | apptype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apptype.c b/apptype.c index 31b8095e13ba..fcd764e49a44 100644 --- a/apptype.c +++ b/apptype.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apptype.c,v 1.11 2009/02/04 18:24:32 christos Exp $") +FILE_RCSID("@(#)$File: apptype.c,v 1.13 2011/09/07 21:57:15 christos Exp $") #endif /* lint */ #include <stdlib.h> @@ -72,6 +72,7 @@ file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, if (fwrite(buf, 1, nb, fp) != nb) { file_error(ms, errno, "cannot write tmp file `%s'", path); + (void)fclose(fp); return -1; } (void)fclose(fp); |
