aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/avr/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/avr/boot.c b/hw/avr/boot.c
index 6fbcde4..d16bb3d 100644
--- a/hw/avr/boot.c
+++ b/hw/avr/boot.c
@@ -60,7 +60,7 @@ static const char *avr_elf_e_flags_to_cpu_type(uint32_t flags)
bool avr_load_firmware(AVRCPU *cpu, MachineState *ms,
MemoryRegion *program_mr, const char *firmware)
{
- const char *filename;
+ g_autofree char *filename = NULL;
int bytes_loaded;
uint64_t entry;
uint32_t e_flags;