libselinux: src/label_android_property: do not leak fd on error

commit 1e8f102e8cec4ae84f09cc595013234398270366 upstream.

We were opening the path, but if the fstat failed or it was not a
regular file we would return without closing the fd.  Fix my using the
common error exit path rather than just returning.

Change-Id: I1f83a044edea0a2e242f6ceabe10567e193a0fae
Signed-off-by: Eric Paris <eparis@redhat.com>
1 file changed
tree: 3b2f6b2f254e6a76a1d60775230f63590a78b68f
  1. include/
  2. src/
  3. Android.mk
  4. NOTICE