Commit 56ef608a authored by TYAGIRIS's avatar TYAGIRIS
Browse files

setting lc3plus scrtach buffer to NULL before malloc

parent 100b1737
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ ivas_error ISAR_LC3PLUS_DEC_Open(
    ( *handle )->handles = NULL;
    ( *handle )->selective_decoding_states = NULL;
    ( *handle )->bitstream_caches = NULL;
    ( *handle )->scratch = NULL;

    if ( ( ( *handle )->handles = malloc( config.channels * sizeof( ISAR_LC3PLUS_DEC_HANDLE ) ) ) == NULL )
    {