s4:lib: Fix a possible fd leak in gp_get_file()
commit98e7021744e1b22c49b40613058d22ab7bfe02d2
authorAndreas Schneider <asn@samba.org>
Thu, 9 Aug 2018 14:42:43 +0000 (9 16:42 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Aug 2018 08:39:15 +0000 (23 10:39 +0200)
treee2e723148001a125fbd5427888b7888e4f1fd5e6
parent6ffa700070be7dfbbca2022823b62790fd7f11ad
s4:lib: Fix a possible fd leak in gp_get_file()

Found by covscan.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13567

Pair-Programmed-With: Justin Stephenson <jstephen@redhat.com>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit d4fb124adfc10de8b7eb1f72b74d7ca83f8415dd)
source4/lib/policy/gp_filesys.c