diff -ruN a/c7x-mma-tidl/ti_dl/utils/tidlModelImport/tidl_import_core.cpp b/c7x-mma-tidl/ti_dl/utils/tidlModelImport/tidl_import_core.cpp --- a/c7x-mma-tidl/ti_dl/utils/tidlModelImport/tidl_import_core.cpp 2024-12-12 17:18:42.000000000 +0100 +++ b/c7x-mma-tidl/ti_dl/utils/tidlModelImport/tidl_import_core.cpp 2026-04-24 08:28:53.986258000 +0200 @@ -3945,6 +3945,7 @@ strcpy(inConfigFilename, TIDL_augmentCharArrayWithSuffix(inConfigFileNameOrig, "_float").c_str()); sTIDL_Network_t * tidlNetStructureFloat = new sTIDL_Network_t; + memset(tidlNetStructureFloat, 0, sizeof(sTIDL_Network_t)); TIDL_updateConfigParameters(&gParams,-1,-1,-1,-1,-1,gParams.numFramesBiasCalibration/4); gParams.writeTraceLevel = 3; TIDL_IMPORT_CHECK_AND_RETURN(TIDL_quantStatsFixedOrFloat(&orgTIDLNetStructure, @@ -4330,8 +4331,13 @@ /* Execute the algorithm */ TIDL_IMPORT_CHECK_AND_RETURN(TIDL_executeAutomatedMixedPrecision(layerIndex, orgTIDLNetStructureOrig, &configParamsOrig), ""); + + TIDL_freeModelParams(orgTIDLNetStructureOrig, orgTIDLNetStructure.numLayers); - delete orgTIDLNetStructureOrig; + if ( orgTIDLNetStructureOrig != NULL ) + { + delete orgTIDLNetStructureOrig; + } } /* Needs review on when exactly we want to abort if this function fails */ TIDL_importBitDepthProtoTxt(&orgTIDLNetStructure, &gParams);