We need to free SymlinkTmp before exiting if SymlinkSizeTmp != ReadSize condition is true
Reported-by: Marvin Häuser <[email protected]> Cc: Pedro Falcato <[email protected]> Cc: Vitaly Cheptsov <[email protected]> Fixes: e81432fbacb7 ("Ext4Pkg: Add symbolic links support") Signed-off-by: Savva Mitrofanov <[email protected]> Reviewed-by: Marvin Häuser <[email protected]> --- Features/Ext4Pkg/Ext4Dxe/Symlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Features/Ext4Pkg/Ext4Dxe/Symlink.c b/Features/Ext4Pkg/Ext4Dxe/Symlink.c index 8b1511a38b55..1189a99ded2b 100644 --- a/Features/Ext4Pkg/Ext4Dxe/Symlink.c +++ b/Features/Ext4Pkg/Ext4Dxe/Symlink.c @@ -160,6 +160,7 @@ Ext4ReadSlowSymlink ( DEBUG_FS, "[ext4] Error! The size of the read block doesn't match the value from the inode!\n" )); + FreePool (SymlinkTmp); return EFI_VOLUME_CORRUPTED; } -- 2.39.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99458): https://edk2.groups.io/g/devel/message/99458 Mute This Topic: https://groups.io/mt/96697377/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
