From 2288370d8bfb93d3fc11d67cd9fde675891aa551 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 4 Apr 2020 22:32:11 +0200 Subject: [PATCH] Fix EAAC file leak --- src/meta/ea_eaac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meta/ea_eaac.c b/src/meta/ea_eaac.c index 5db362cf..2b551ccf 100644 --- a/src/meta/ea_eaac.c +++ b/src/meta/ea_eaac.c @@ -1618,11 +1618,13 @@ static layered_layout_data* build_layered_eaaudiocore(STREAMFILE *sf_data, eaac_ if ( !vgmstream_open_stream(data->layers[i], temp_sf, 0x00) ) { goto fail; } + + close_streamfile(temp_sf); + temp_sf = NULL; } if (!setup_layout_layered(data)) goto fail; - close_streamfile(temp_sf); return data; fail: