{\r
signed char *pcHead; /*< Points to the beginning of the queue storage area. */\r
signed char *pcTail; /*< Points to the byte at the end of the queue storage area. Once more byte is allocated than necessary to store the queue items, this is used as a marker. */\r
-\r
signed char *pcWriteTo; /*< Points to the free next place in the storage area. */\r
\r
union /* Use of a union is an exception to the coding standard to ensure two mutually exclusive structure members don't appear simultaneously (wasting RAM). */\r
{\r
signed char *pcReadFrom; /*< Points to the last place that a queued item was read from when the structure is used as a queue. */\r
- unsigned portBASE_TYPE uxRecursiveCallCount;/*< Maintains a count of the numebr of times a recursive mutex has been recursively 'taken' when the structure is used as a mutex. */\r
+ unsigned portBASE_TYPE uxRecursiveCallCount;/*< Maintains a count of the number of times a recursive mutex has been recursively 'taken' when the structure is used as a mutex. */\r
} u;\r
\r
xList xTasksWaitingToSend; /*< List of tasks that are blocked waiting to post onto this queue. Stored in priority order. */\r
vQueueUnregisterQueue( pxQueue );\r
}\r
#endif\r
- vPortFree( pxQueue->pcHead );\r
+ if( pxQueue->pcHead != NULL )\r
+ {\r
+ vPortFree( pxQueue->pcHead );\r
+ }\r
vPortFree( pxQueue );\r
}\r
/*-----------------------------------------------------------*/\r