From 6964bb5ee5c3ce044cb870541cd6f123bc313733 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 23 Jan 2011 16:50:33 +0000 Subject: clean--fix-sigpipe.patch Signed-off-by: Andy Green --- test-server/test-client.c | 2 ++ test-server/test-server.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'test-server') diff --git a/test-server/test-client.c b/test-server/test-client.c index 6869d6d..3243ccd 100644 --- a/test-server/test-client.c +++ b/test-server/test-client.c @@ -380,6 +380,8 @@ int main(int argc, char **argv) libwebsocket_client_close(wsi_dumb); libwebsocket_client_close(wsi_mirror); + libwebsocket_context_destroy(context); + return 0; usage: diff --git a/test-server/test-server.c b/test-server/test-server.c index dc3cfd9..832a45a 100644 --- a/test-server/test-server.c +++ b/test-server/test-server.c @@ -1,7 +1,7 @@ /* * libwebsockets-test-server - libwebsockets test implementation * - * Copyright (C) 2010 Andy Green + * Copyright (C) 2010-2011 Andy Green * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -233,7 +233,7 @@ int main(int argc, char **argv) struct libwebsocket_context *context; fprintf(stderr, "libwebsockets test server\n" - "(C) Copyright 2010 Andy Green " + "(C) Copyright 2010-2011 Andy Green " "licensed under LGPL2.1\n"); while (n >= 0) { @@ -349,5 +349,7 @@ int main(int argc, char **argv) #endif + libwebsocket_context_destroy(context); + return 0; } -- cgit v1.2.3