summaryrefslogtreecommitdiffstats
path: root/lld
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-01-31 21:46:29 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-01-31 21:46:29 +0000
commit4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54 (patch)
treef4076e3f6eed7f87aa650a6b6e1b4f315e45a03a /lld
parent8526e64beffdfadf6b9ab8d4557b2f0851908e57 (diff)
downloadbcm5719-llvm-4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54.tar.gz
bcm5719-llvm-4e45ebb92c9708dffcd6c7d1890f0f2d696d1b54.zip
Fix use after free.
llvm-svn: 149429
Diffstat (limited to 'lld')
-rw-r--r--lld/lib/Core/NativeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/NativeReader.cpp b/lld/lib/Core/NativeReader.cpp
index cc61fc0dbce..0316a2e5bb3 100644
--- a/lld/lib/Core/NativeReader.cpp
+++ b/lld/lib/Core/NativeReader.cpp
@@ -409,7 +409,7 @@ llvm::error_code parseNativeObjectFileOrSTDIN(llvm::StringRef path,
if ( ec )
return ec;
- return parseNativeObjectFile(mb.get(), path, result);
+ return parseNativeObjectFile(mb.take(), path, result);
}
OpenPOWER on IntegriCloud