From f04ce0e65747b16e6f321c0fdd38b6e1dc3271a3 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 15 Nov 2014 10:53:12 +0000 Subject: [PATCH] Dispose disassembler after use in unit test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222083 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/MC/Disassembler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/MC/Disassembler.cpp b/unittests/MC/Disassembler.cpp index e432b15bb48..dd0f1ef9ace 100644 --- a/unittests/MC/Disassembler.cpp +++ b/unittests/MC/Disassembler.cpp @@ -59,4 +59,6 @@ TEST(Disassembler, Test1) { OutStringSize); EXPECT_EQ(InstSize, 2U); EXPECT_EQ(StringRef(OutString), "\tjmp\t0x1"); + + LLVMDisasmDispose(DCR); }