mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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:
1 parent
f949017596
commit
921fd1e363
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user