mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-23 17:48:03 +00:00
Fix use after free.
llvm-svn: 149429
This commit is contained in:
parent
8526e64bef
commit
4e45ebb92c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user