mirror of https://github.com/eclipse/paho.mqtt.c
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:
parent
43e2788252
commit
6b1fee426e
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue