mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 12:54:58 +00:00
elantp: Fix a tiny memory leak when parsing firmware
This commit is contained in:
parent
eef106213e
commit
0592552b40
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user