Commit 75476e98 authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch...

Merge branch 'basop-2333-clang18-asan-memory-leaks-in-lib_rend-ivas_mcmasa_ana_fx-c-246-9' into kiene/test-ubuntu-24_04-runner
parents 230ef4e4 f3c5c278
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@
#define FIX_BASOP_2328_MSAN_WRONG_ASSIGNMENT            /* Nokia: basop issue 2328: Fix MSAN error by correcting the variable assignment */
#define FIX_BASOP_2329_UNINIT_VALUE                     /* Nokia: basop issue 2329: Fix issue by checking for structure instead of length */
#define FIX_BASOP_2332_ASAN_OVERFLOW_IN_EXT_DIRAC_REND  /* Nokia: basop issue 2332: Uses predefined memory sizes instead computing wrong */
#define FIX_BASOP_2333_MCMASA_ANA_MEMORY_LEAK           /* Nokia: basop issue 2333: Add missing free for direction_vector_e to ivas_mcmasa_ana_fx.c */

/* #################### End BE switches ################################## */

+11 −0
Original line number Diff line number Diff line
@@ -431,6 +431,17 @@ void ivas_mcmasa_ana_close(

        free( ( *hMcMasa )->direction_vector_m_fx[i] );
        ( *hMcMasa )->direction_vector_m_fx[i] = NULL;
#ifdef FIX_BASOP_2333_MCMASA_ANA_MEMORY_LEAK

        FOR( j = 0; j < MAX_PARAM_SPATIAL_SUBFRAMES; j++ )
        {
            free( ( *hMcMasa )->direction_vector_e[i][j] );
            ( *hMcMasa )->direction_vector_e[i][j] = NULL;
        }

        free( ( *hMcMasa )->direction_vector_e[i] );
        ( *hMcMasa )->direction_vector_e[i] = NULL;
#endif
    }

    FOR( j = 0; j < DIRAC_NO_COL_AVG_DIFF; j++ )