7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

Fixed Memory Leak

This commit is contained in:
Daniel Vasile 2021-03-22 21:37:16 -04:00
parent 26358a4846
commit 92a5f3ff84

View File

@ -208,7 +208,7 @@ void Bridge::TxJob() {
send(client_tx_sock,tx_buff,packet_size,0);
#endif
//free the packet
free(currentPacket);
FreePacket(currentPacket);
}
// No more packets, sleep.
std::this_thread::sleep_for(std::chrono::microseconds(500));