artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3671ebb
)
magicfp is fclosed where it was opened, remove fclose from magic_load()
author
brynet
<brynet@openbsd.org>
Sat, 1 Jul 2017 14:34:29 +0000
(14:34 +0000)
committer
brynet
<brynet@openbsd.org>
Sat, 1 Jul 2017 14:34:29 +0000
(14:34 +0000)
ok nicm deraadt
usr.bin/file/magic-load.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/magic-load.c
b/usr.bin/file/magic-load.c
index
70a3a3f
..
dd95d15
100644
(file)
--- a/
usr.bin/file/magic-load.c
+++ b/
usr.bin/file/magic-load.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: magic-load.c,v 1.2
4 2017/04/18 14:16:48 nicm
Exp $ */
+/* $OpenBSD: magic-load.c,v 1.2
5 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);
}