elantp: Fix a tiny memory leak when parsing firmware

This commit is contained in:
Richard Hughes 2021-11-15 21:44:30 +00:00 committed by Mario Limonciello
parent eef106213e
commit 0592552b40

View File

@ -78,7 +78,7 @@ fu_elanfp_firmware_parse(FuFirmware *firmware,
guint32 length = 0;
guint32 fwtype = 0;
g_autoptr(GBytes) blob = NULL;
g_autoptr(FuFirmware) img = fu_firmware_new();
g_autoptr(FuFirmware) img = NULL;
/* type, reserved, start-addr, len */
if (!fu_common_read_uint32_safe(buf,