s4:lib: Fix a possible fd leak in gp_get_file()
authorAndreas Schneider <asn@samba.org>
Thu, 9 Aug 2018 14:42:43 +0000 (16:42 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 10 Aug 2018 23:49:16 +0000 (01:49 +0200)
commitd4fb124adfc10de8b7eb1f72b74d7ca83f8415dd
treebdc9b422694213aa8d18f8770f7e43f1244cd97b
parentb7b4fc51d0eadbbc94576dda75ae80098a205a24
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>
source4/lib/policy/gp_filesys.c