USB-storage: free Packet_descriptor after ACK

Fixes #903.
This commit is contained in:
Josef Söntgen 2013-10-07 16:21:11 +02:00 committed by Norman Feske
parent 65f8f9c75a
commit e1ed832ac1
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class Storage_device : public Genode::List<Storage_device>::Element,
PDBG("ACK packet for block: %zu status: %d", packet->block_number(), cmnd->result);
session->complete(*packet, true);
Genode::destroy(Genode::env()->heap(), packet);
_scsi_free_command(cmnd);
}