1
0
Fork 0
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:
Andy Green 2014-11-30 12:21:40 +08:00
parent 26193fab34
commit e4d6f1c116

View file

@ -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);