vbox: fix memory leak in FloppyIO

This commit is contained in:
Juha Sointusalo 2015-11-22 22:50:08 +02:00
parent 7ef9440116
commit 6ced9a08a6
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}