1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

coverity 83685 daemonize put the close in the right place

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-11-30 13:32:27 +08:00
parent 9c8d590f9d
commit dfa0f9444e

View file

@ -121,8 +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);