From 41a327ad9a5a5ebfdba05355b6afec6664b78a7b Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 14 Oct 2011 09:28:09 -0400 Subject: TOOLS: Do not leak pid_file handle on error Coverity 11032 --- src/tools/sss_debuglevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/sss_debuglevel.c b/src/tools/sss_debuglevel.c index 38262ddad..f3fc045bb 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; -- cgit