On 1/8/24 23:53, Philippe Mathieu-Daudé wrote:
@@ -818,6 +867,9 @@ static void pflash_cfi01_realize(DeviceState *dev, Error
**errp)
pfl->cmd = 0x00;
pfl->status = 0x80; /* WSM ready */
pflash_cfi01_fill_cfi_table(pfl);
+
+ pfl->blk_bytes = g_malloc(pfl->writeblock_size);
Do you need an unrealize to free? r~
