[PATCH] Fix a memory leak in one of the GlobalList ctors.

Peter Collingbourne peter at pcc.me.uk
Wed Jul 3 19:04:30 PDT 2013


Hi kcc,

http://llvm-reviews.chandlerc.com/D1093

Files:
  lib/Transforms/Utils/GlobalList.cpp

Index: lib/Transforms/Utils/GlobalList.cpp
===================================================================
--- lib/Transforms/Utils/GlobalList.cpp
+++ lib/Transforms/Utils/GlobalList.cpp
@@ -40,7 +40,7 @@
                        EC.message());
   }
 
-  init(File.take());
+  init(File.get());
 }
 
 GlobalList::GlobalList(MemoryBuffer *MB) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1093.1.patch
Type: text/x-patch
Size: 347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130703/f1f2e213/attachment.bin>


More information about the llvm-commits mailing list