service_start(): Don't fclose() invalid file pointer, found by Coverity Scan

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-18 22:58:31 +02:00
1 parent f949017596
commit 921fd1e363
1 file changed
+1 -1
+1 -1
View File
@@ -277,8 +277,8 @@ static int service_start(svc_t *svc)
if (fp) {
dup2(fileno(fp), STDOUT_FILENO);
dup2(fileno(fp), STDERR_FILENO);
fclose(fp);
}
fclose(fp);
}
logger_err: