Commit cf8a6122 authored by emerit's avatar emerit
Browse files

one more fix for sanitizer

parent 26e80759
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -776,6 +776,13 @@ void BSplineModelEvalDealloc_fx(

    IF( model->modelROM )
    {
#ifdef USE_TDREND_16BIT_ROM
        for ( i = 0; i < model->num_unique_azim_splines; i++ )
        {
            free( model->azimBsShape_dyn_fx[i] );
        }
        free( model->azimBsShape_dyn_fx );
#endif
        free( (void *) model->azimBsShape_fx ); /* void* cast needed to please both gcc and Visual studio compilers. Deallocating const float** should be fine and gcc agrees, but Visual studio complains. */
        FOR( i = 0; i < model->elevDim3; i++ )
        {