From 714d77deddd72cd6efa2af024af0a0340e616816 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 02:46:16 +0100 Subject: [PATCH] Fixed a double free in the FDI2RAW code. --- src/floppy/fdi2raw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/floppy/fdi2raw.c b/src/floppy/fdi2raw.c index 5cbbd9a0c..03ddf460f 100644 --- a/src/floppy/fdi2raw.c +++ b/src/floppy/fdi2raw.c @@ -326,7 +326,9 @@ static void fdi_decode (uae_u8 *stream, int size, uae_u8 *out) ((uae_u32*)out)[i] = v; } free_nodes (root.left); + root.left = 0; free_nodes (root.right); + root.right = 0; } }