libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 36bf651023e2f810bd2ae4aa1ab2354338b9f00c
parent 94e7a07828a3c4d2b5f782c1cafc35169d9bc29f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 15 Jun 2017 20:19:43 +0300

test_daemon: fixed error description, resource leak

Diffstat:
Msrc/microhttpd/test_daemon.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_daemon.c b/src/microhttpd/test_daemon.c @@ -43,8 +43,9 @@ testStartError () d = MHD_start_daemon (MHD_USE_ERROR_LOG, 0, NULL, NULL, NULL, NULL); if (NULL != d) { + MHD_stop_daemon (); fprintf (stderr, - "Succeeded at binding to port 0?\n"); + "Succeeded to start without MHD_AccessHandlerCallback?\n"); return 1; } return 0;