coverity 83685 daemonize put the close in the right place
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
9c8d590f9d
commit
dfa0f9444e
1 changed files with 1 additions and 1 deletions
|
@ -121,8 +121,8 @@ lws_daemonize(const char *_lock_path)
|
||||||
_lock_path, n);
|
_lock_path, n);
|
||||||
unlink(lock_path);
|
unlink(lock_path);
|
||||||
}
|
}
|
||||||
} else
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
n = strlen(_lock_path) + 1;
|
n = strlen(_lock_path) + 1;
|
||||||
lock_path = malloc(n);
|
lock_path = malloc(n);
|
||||||
|
|
Loading…
Add table
Reference in a new issue