Skip to content

Commit 3217322

Browse files
committed
fixed small bug in the test
1 parent 02b10cf commit 3217322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MqttClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ void MqttClient::setTxPayloadSize(unsigned short size)
842842
free(_txPayloadBuffer);
843843
_txPayloadBuffer = NULL;
844844
_txPayloadBufferIndex = 0;
845+
_last_mallocd_size = 0;
845846
}
846847

847848
_tx_payload_buffer_size = size;

0 commit comments

Comments
 (0)