util/amdfwutil: Fix adding microcode binaries

Change-Id: I726df4ff97688f4c48961e6e61672cef6c3b7aff
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68573
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 5552658..389be9f 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -833,7 +833,8 @@
 		if (index->filename &&
 				index->type != AMD_BIOS_APCB &&
 				index->type != AMD_BIOS_BIN &&
-				index->type != AMD_BIOS_APCB_BK)
+				index->type != AMD_BIOS_APCB_BK &&
+				index->type != AMD_BIOS_UCODE)
 			free(index->filename);
 	}
 }