Commit e25fe740 authored by vaclav's avatar vaclav
Browse files

fix handle allocation

parent e5514c21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ ivas_error IVAS_LC3PLUS_DEC_Open(
    int16_t numLC3plusFramesPerIvasFrame;
    int16_t i;

    if ( ( handle = malloc( sizeof( struct IVAS_LC3PLUS_DEC_HANDLE ) ) ) == NULL )
    if ( ( *handle = malloc( sizeof( struct IVAS_LC3PLUS_DEC_HANDLE ) ) ) == NULL )
    {
        return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for LC3plus wrapper handle\n" );
    }