diff options
author | Bryan Steele <brynet@cvs.openbsd.org> | 2017-07-01 14:34:30 +0000 |
---|---|---|
committer | Bryan Steele <brynet@cvs.openbsd.org> | 2017-07-01 14:34:30 +0000 |
commit | 189ba3c9e04c1be69853dfa1e15b8da03ca32475 (patch) | |
tree | 3fe415428828d77acfbd16d8889e78508983e6be | |
parent | b501634a7478265dcb86f29b2cf431e775cf98d8 (diff) |
magicfp is fclosed where it was opened, remove fclose from magic_load()
ok nicm deraadt
-rw-r--r-- | usr.bin/file/magic-load.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/file/magic-load.c b/usr.bin/file/magic-load.c index 70a3a3fda75..dd95d15ebdf 100644 --- a/usr.bin/file/magic-load.c +++ b/usr.bin/file/magic-load.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magic-load.c,v 1.24 2017/04/18 14:16:48 nicm Exp $ */ +/* $OpenBSD: magic-load.c,v 1.25 2017/07/01 14:34:29 brynet Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -1169,6 +1169,5 @@ magic_load(FILE *f, const char *path, int warnings) } free(tmp); - fclose(f); return (m); } |