Commit f3c5c278 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Fix basop issue 2333 by adding a missing free

parent 2997f3e6
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@
#define OPT_BE_2311_HARM_GSC_GAIN                       /* VA: issue 2311: BE part of the GSC gain harmonization pipeline #70380 shows the BE */
#define HARM_CORECODER_UPDT                             /* VA: basop issue 2342: Remove duplicated code in core-coder common update functions */
#define HARM_CORE_SW                                    /* VA: basop issue 2314: Remove duplicated code in the core switching */
#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++ )