free(buf);
}
-static void TmqhPacketpoolInit(void)
+static void TmqhPacketPoolInit(void)
{
SCMutexLock(&pkt_pool_thread_key_mutex);
if (pkt_pool_thread_key_initialized) {
static PktPool *ThreadPacketPoolCreate(void)
{
- TmqhPacketpoolInit();
+ TmqhPacketPoolInit();
/* Create a new pool for this thread. */
PktPool* pool = (PktPool*)SCMallocAligned(sizeof(PktPool), CLS);
{
PktPool* pool = (PktPool*)pthread_getspecific(pkt_pool_thread_key);
if (pool == NULL)
- pool = ThreadPacketPoolCreate();
-
+ pool = ThreadPacketPoolCreate();
+
return pool;
}
#endif