commit | 46e212567d3eaca03470940481d5e22c56a678ac | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Tue Feb 05 19:15:42 2013 -0500 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Mon Feb 02 18:45:00 2015 +0000 |
tree | 3b2f6b2f254e6a76a1d60775230f63590a78b68f | |
parent | c01e95f737527e068edcacb1179affca9f62a52d [diff] |
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>