fixe leak found by asan build bot
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index bca560c..6908b6a 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -2818,8 +2818,10 @@
 APValue *LifetimeExtendedTemporaryDecl::getOrCreateValue(bool MayCreate) const {
   assert(getStorageDuration() == SD_Static &&
          "don't need to cache the computed value for this temporary");
-  if (MayCreate && !Value)
+  if (MayCreate && !Value) {
     Value = (new (getASTContext()) APValue);
+    getASTContext().addDestruction(Value);
+  }
   assert(Value && "may not be null");
   return Value;
 }