summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-10-14 09:28:09 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-10-14 13:58:00 -0400
commit41a327ad9a5a5ebfdba05355b6afec6664b78a7b (patch)
tree085f4dd064b3a820c592005c9ce3dfab63e416a1 /src
parent8cfaeff2af47400c2bce0d4a23caa40d06500c55 (diff)
downloadsssd-41a327ad9a5a5ebfdba05355b6afec6664b78a7b.tar.gz
sssd-41a327ad9a5a5ebfdba05355b6afec6664b78a7b.tar.bz2
sssd-41a327ad9a5a5ebfdba05355b6afec6664b78a7b.zip
TOOLS: Do not leak pid_file handle on error
Coverity 11032
Diffstat (limited to 'src')
-rw-r--r--src/tools/sss_debuglevel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/sss_debuglevel.c b/src/tools/sss_debuglevel.c
index 38262dda..f3fc045b 100644
--- a/src/tools/sss_debuglevel.c
+++ b/src/tools/sss_debuglevel.c
@@ -351,7 +351,8 @@ errno_t get_sssd_pid(pid_t *out_pid)
if (*out_pid == 0) {
DEBUG(SSSDBG_CRIT_FAILURE,
("File \"%s\" contains invalid pid.\n", SSSD_PIDFILE));
- return EINVAL;
+ ret = EINVAL;
+ goto done;
}
ret = EOK;