/*\r
- * FreeRTOS+TCP V2.0.7\r
+ * FreeRTOS+TCP V2.0.11\r
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
*\r
* Permission is hereby granted, free of charge, to any person obtaining a copy of\r
\r
/*-----------------------------------------------------------*/\r
\r
-/* TCP segement pool. */\r
+/* TCP segment pool. */\r
#if( ipconfigUSE_TCP_WIN == 1 )\r
static TCPSegment_t *xTCPSegments = NULL;\r
#endif /* ipconfigUSE_TCP_WIN == 1 */\r
}\r
/*-----------------------------------------------------------*/\r
\r
+#if( ipconfigUSE_TCP_WIN == 1 )\r
+\r
+ void vTCPSegmentCleanup( void )\r
+ {\r
+ /* Free and clear the TCP segments pointer. This function should only be called\r
+ * once FreeRTOS+TCP will no longer be used. No thread-safety is provided for this\r
+ * function. */\r
+ if( xTCPSegments != NULL )\r
+ {\r
+ vPortFreeLarge( xTCPSegments );\r
+ xTCPSegments = NULL;\r
+ }\r
+ }\r
+\r
+#endif /* ipconfgiUSE_TCP_WIN == 1 */\r
+/*-----------------------------------------------------------*/\r
+\r
/*=============================================================================\r
*\r
* ###### # #\r