mirror of https://github.com/eclipse/paho.mqtt.c
Merge branch 'locez-bugfix-double-free-for-qos0' into develop
This commit is contained in:
commit
c88c957e1a
|
|
@ -1441,7 +1441,10 @@ static int MQTTAsync_processCommand(void)
|
|||
else
|
||||
{
|
||||
if (rc != SOCKET_ERROR)
|
||||
command->command.details.pub.destinationName = NULL; /* this will be freed by the protocol code */
|
||||
{
|
||||
command->command.details.pub.payload = NULL; /* this will be freed by the protocol code */
|
||||
command->command.details.pub.destinationName = NULL; /* this will be freed by the protocol code */
|
||||
}
|
||||
command->client->pending_write = &command->command;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue