We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 273e707 commit 37d2334Copy full SHA for 37d2334
1 file changed
src/mqtt_broker.c
@@ -1241,9 +1241,11 @@ static void BrokerClient_Free(BrokerClient* bc)
1241
}
1242
#endif
1243
if (bc->tx_buf) {
1244
+ BROKER_FORCE_ZERO(bc->tx_buf, bc->tx_buf_len);
1245
WOLFMQTT_FREE(bc->tx_buf);
1246
1247
if (bc->rx_buf) {
1248
+ BROKER_FORCE_ZERO(bc->rx_buf, bc->rx_buf_len);
1249
WOLFMQTT_FREE(bc->rx_buf);
1250
1251
WOLFMQTT_FREE(bc);
0 commit comments