Fix memory leak (coverity #47844)
git-svn-id: http://root.cern.ch/svn/root/trunk@46532 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
20f78c8af1
commit
d444bf0c83
@ -212,7 +212,8 @@ namespace cling {
|
||||
bool MetaProcessor::ProcessMeta(const std::string& input_line,
|
||||
StoredValueRef* result){
|
||||
|
||||
llvm::MemoryBuffer* MB = llvm::MemoryBuffer::getMemBuffer(input_line);
|
||||
llvm::OwningPtr<llvm::MemoryBuffer> MB;
|
||||
MB.reset(llvm::MemoryBuffer::getMemBuffer(input_line));
|
||||
Token Tok;
|
||||
|
||||
CommandLexer CmdLexer(MB->getBufferStart(), MB->getBufferEnd(),
|
||||
|
Loading…
Reference in New Issue
Block a user