fix ubsan-detected UMR in TemporaryFile
[folly.git] / folly / experimental / TestUtil.h
index 1b8e339da511457f7d5779b04a66d0402b5a688c..dc75069a9f297b7753db0b5646960d240f2723e0 100644 (file)
@@ -52,7 +52,6 @@ class TemporaryFile {
 
   // Movable, but not copyable
   TemporaryFile(TemporaryFile&& other) noexcept {
-    reset();
     assign(other);
   }