[llvm] r222083 - Dispose disassembler after use in unit test.
Benjamin Kramer
benny.kra at googlemail.com
Sat Nov 15 02:53:13 PST 2014
Author: d0k
Date: Sat Nov 15 04:53:12 2014
New Revision: 222083
URL: http://llvm.org/viewvc/llvm-project?rev=222083&view=rev
Log:
Dispose disassembler after use in unit test.
Modified:
llvm/trunk/unittests/MC/Disassembler.cpp
Modified: llvm/trunk/unittests/MC/Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/MC/Disassembler.cpp?rev=222083&r1=222082&r2=222083&view=diff
==============================================================================
--- llvm/trunk/unittests/MC/Disassembler.cpp (original)
+++ llvm/trunk/unittests/MC/Disassembler.cpp Sat Nov 15 04:53:12 2014
@@ -59,4 +59,6 @@ TEST(Disassembler, Test1) {
OutStringSize);
EXPECT_EQ(InstSize, 2U);
EXPECT_EQ(StringRef(OutString), "\tjmp\t0x1");
+
+ LLVMDisasmDispose(DCR);
}
More information about the llvm-commits
mailing list