diff --git a/syncd/Syncd.cpp b/syncd/Syncd.cpp index 980886f8f..7baeb6c4d 100644 --- a/syncd/Syncd.cpp +++ b/syncd/Syncd.cpp @@ -36,6 +36,8 @@ #include #include +#include + #define DEF_SAI_WARM_BOOT_DATA_FILE "/var/warmboot/sai-warmboot.bin" #define SAI_FAILURE_DUMP_SCRIPT "/usr/bin/sai_failure_dump.sh" @@ -3872,6 +3874,7 @@ sai_status_t Syncd::processNotifySyncd( try { status = applyView(); + (void)malloc_trim(0); } catch(...) {