Skip to content
Commit 4d960003 authored by Savva Mitrofanov's avatar Savva Mitrofanov Committed by Pedro Falcato
Browse files

Ext4Pkg: Fix memory leak in Ext4RetrieveDirent



We need to free buffer on return if BlockRemainder != 0. Also changed
return logic from function to use use common exit to prevent code
duplication.

Cc: Marvin Häuser <mhaeuser@posteo.de>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Fixes: d9ceedca ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: default avatarSavva Mitrofanov <savvamtr@gmail.com>
Reviewed-by: default avatarPedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: default avatarMarvin Häuser <mhaeuser@posteo.de>
parent 0540e1a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment