summaryrefslogtreecommitdiff
path: root/test-server
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2011-01-23 16:50:33 +0000
committerAndy Green <andy@warmcat.com>2011-01-23 16:50:33 +0000
commit6964bb5ee5c3ce044cb870541cd6f123bc313733 (patch)
tree7dd851bcdb2e8f19037ecb31480c37fab4565605 /test-server
parent4739e5c4509d2448b57c1aa8f1cf0da601ea32a7 (diff)
clean--fix-sigpipe.patch
Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'test-server')
-rw-r--r--test-server/test-client.c2
-rw-r--r--test-server/test-server.c6
2 files changed, 6 insertions, 2 deletions
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 <andy@warmcat.com>
+ * Copyright (C) 2010-2011 Andy Green <andy@warmcat.com>
*
* 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 <andy@warmcat.com> "
+ "(C) Copyright 2010-2011 Andy Green <andy@warmcat.com> "
"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;
}