mirror of https://github.com/BOINC/boinc.git
vbox: fix memory leak in FloppyIO
This commit is contained in:
parent
7ef9440116
commit
6ced9a08a6
|
@ -307,7 +307,7 @@ int FloppyIO::receive(string * ansBuffer) {
|
|||
|
||||
// Copy input data to string object
|
||||
*ansBuffer = dataToReceive;
|
||||
dataToReceive = NULL;
|
||||
delete[] dataToReceive;
|
||||
return (int)ansBuffer->length();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue