Migrate PREINITDEVICE in recovery mode

Close #6917
This commit is contained in:
topjohnwu
2023-06-02 16:49:04 -07:00
parent 7eebe62bb6
commit feb44f875e
7 changed files with 23 additions and 44 deletions

View File

@@ -66,7 +66,7 @@ struct heap_data : public byte_data {
MOVE_ONLY(heap_data)
explicit heap_data(size_t sz) { this->sz = sz; buf = new uint8_t[sz]; }
~heap_data() { free(buf); }
~heap_data() { delete[] buf; }
};
struct mmap_data : public byte_data {