clean--fix-sigpipe.patch

Signed-off-by: Andy Green <andy@warmcat.com>
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 @@
 	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 @@
 	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 @@
 
 #endif
 
+	libwebsocket_context_destroy(context);
+
 	return 0;
 }