From: brynet Date: Sat, 1 Jul 2017 14:34:29 +0000 (+0000) Subject: magicfp is fclosed where it was opened, remove fclose from magic_load() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b74e2145070f4c771d3821cd38e90ca4717e10f0;p=openbsd magicfp is fclosed where it was opened, remove fclose from magic_load() ok nicm deraadt --- 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); }