Fix memory leaks in client
This commit is contained in:
parent
d716973642
commit
2bbf66c0ee
2 changed files with 9 additions and 0 deletions
|
|
@ -215,6 +215,8 @@ void NetworkClient::ListenThread()
|
|||
ProcessReply_ControllerData(header.pkt_size, data, header.pkt_dev_idx);
|
||||
break;
|
||||
}
|
||||
|
||||
delete[] data;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue