diff --git a/src/erasure-code/shec/ErasureCodeShecTableCache.cc b/src/erasure-code/shec/ErasureCodeShecTableCache.cc index 2f9a60b62bc64..202b01a66409a 100644 --- a/src/erasure-code/shec/ErasureCodeShecTableCache.cc +++ b/src/erasure-code/shec/ErasureCodeShecTableCache.cc @@ -58,7 +58,7 @@ ErasureCodeShecTableCache::~ErasureCodeShecTableCache() for (table_it = tables_it__->second.begin(); table_it != tables_it__->second.end(); ++table_it) { if (table_it->second) { if (*(table_it->second)) { - delete *(table_it->second); + free(*(table_it->second)); } delete table_it->second; }