Commit 57468fa5 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Remove memory leak due to old initialization of forwardPacketTable.

parent c2bffb43
Pipeline #93 failed with stage
......@@ -51,8 +51,6 @@ PrrtSocket *PrrtSocket_create(const bool is_sender)
sock_ptr->receivers = List_create();
} else {
sock_ptr->forwardPacketTable = calloc(1, sizeof(PrrtForwardPacketTable));
check_mem(sock_ptr->forwardPacketTable)
check(PrrtForwardPacketTable_create(sock_ptr->forwardPacketTable) == 0, "Creating table failed.");
check(pthread_mutex_init(&sock_ptr->inQueueFilledMutex, NULL) == 0, "Mutex init failed.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment