[llvm] b3428bb - Add missing freeConstants() call for ConstantPtrAuths.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 26 19:11:03 PST 2025


Author: Peter Collingbourne
Date: 2025-11-26T19:10:50-08:00
New Revision: b3428bb966f1de8aa48375ffee0eba04ede133b7

URL: https://github.com/llvm/llvm-project/commit/b3428bb966f1de8aa48375ffee0eba04ede133b7
DIFF: https://github.com/llvm/llvm-project/commit/b3428bb966f1de8aa48375ffee0eba04ede133b7.diff

LOG: Add missing freeConstants() call for ConstantPtrAuths.

Fixes memory leak uncovered by #133533.

Added: 
    

Modified: 
    llvm/lib/IR/LLVMContextImpl.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index ca7605ae53453..8f79398b086eb 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -107,6 +107,7 @@ LLVMContextImpl::~LLVMContextImpl() {
   ArrayConstants.freeConstants();
   StructConstants.freeConstants();
   VectorConstants.freeConstants();
+  ConstantPtrAuths.freeConstants();
   InlineAsms.freeConstants();
 
   CAZConstants.clear();


        


More information about the llvm-commits mailing list