mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 83670 daemonize can leak lock handle
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
26193fab34
commit
e4d6f1c116
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ lws_daemonize(const char *_lock_path)
|
|||
_lock_path, n);
|
||||
unlink(lock_path);
|
||||
}
|
||||
}
|
||||
} else
|
||||
close(fd);
|
||||
|
||||
n = strlen(_lock_path) + 1;
|
||||
lock_path = malloc(n);
|
||||
|
|
Loading…
Add table
Reference in a new issue