Parcourir la source

[2831] Also clear the named address before shrinkToFit()

Mukund Sivaraman il y a 12 ans
Parent
commit
d43543b1fe
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/lib/util/tests/memory_segment_mapped_unittest.cc

+ 1 - 0
src/lib/util/tests/memory_segment_mapped_unittest.cc

@@ -281,6 +281,7 @@ checkNamedData(const std::string& name, const std::vector<uint8_t>& data,
 
     if (delete_after_check) {
         sgmt.deallocate(dp, data.size());
+        sgmt.clearNamedAddress(name.c_str());
     }
 }