Commit b488aafd authored by vaclav's avatar vaclav
Browse files

fix: adding the freeing of possibly non-NULL entries

parent b11dd76f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -739,10 +739,15 @@ ivas_error ivas_ism_metadata_dec_create(
    }

#ifdef NONBE_FIX_1065_ISM_MD_HANDLE
    /* sanity freeing - it can happen only in reconfiguration when a smaller number of handles than before is requested */
    for ( ; ch < MAX_NUM_OBJECTS; ch++ )
    {
        if ( st_ivas->hIsmMetaData[ch] != NULL )
        {
            free( st_ivas->hIsmMetaData[ch] );
            st_ivas->hIsmMetaData[ch] = NULL;
        }
    }
#endif

    if ( element_brate_tmp != NULL )