Replace free() with Log()

As this else block should never be reached, a log message is created when it is reached

Signed-off-by: Harald Reif <haraldr@copadata.com>
This commit is contained in:
Harald Reif 2025-01-07 08:14:57 +01:00
parent 43e2788252
commit 6b1fee426e
1 changed files with 1 additions and 2 deletions

View File

@ -2322,8 +2322,7 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
}
else
{
free(pack);
pack = NULL;
Log(TRACE_MIN, -1, "An unexpected packet type %u has been received", pack->header.bits.type);
}
}
}