From b74e2145070f4c771d3821cd38e90ca4717e10f0 Mon Sep 17 00:00:00 2001 From: brynet Date: Sat, 1 Jul 2017 14:34:29 +0000 Subject: [PATCH] magicfp is fclosed where it was opened, remove fclose from magic_load() ok nicm deraadt --- usr.bin/file/magic-load.c | 3 +-- 1 file changed, 1 insertion(+), 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 @@ -1169,6 +1169,5 @@ magic_load(FILE *f, const char *path, int warnings) } free(tmp); - fclose(f); return (m); } -- 2.20.1