Index: src/include/gnunet_server_lib.h
===================================================================
--- src/include/gnunet_server_lib.h	(revision 17235)
+++ src/include/gnunet_server_lib.h	(working copy)
@@ -476,7 +476,16 @@
                                     struct GNUNET_TIME_Relative timeout);
 
 
+/**
+ * Destroy a transmission context.
+ *
+ * @param tc transmission context to destroy
+ */
+void
+GNUNET_SERVER_transmit_context_destroy (struct GNUNET_SERVER_TransmitContext
+                                        *tc);
 
+
 /**
  * The notification context is the key datastructure for a conveniance
  * API used for transmission of notifications to the client until the
Index: src/util/server_tc.c
===================================================================
--- src/util/server_tc.c	(revision 17235)
+++ src/util/server_tc.c	(working copy)
@@ -226,4 +226,21 @@
   }
 }
 
+
+/**
+ * Destroy a transmission context.
+ *
+ * @param tc transmission context to destroy
+ */
+void
+GNUNET_SERVER_transmit_context_destroy (struct GNUNET_SERVER_TransmitContext
+                                        *tc)
+{
+  GNUNET_SERVER_receive_done (tc->client, GNUNET_OK);
+  GNUNET_SERVER_client_drop (tc->client);
+  GNUNET_free_non_null (tc->buf);
+  GNUNET_free (tc);
+}
+
+
 /* end of server_tc.c */
