make sure to unlock keymgr if the JIT is created and destroyed, all
authorChris Lattner <sabre@nondot.org>
Thu, 16 Apr 2009 21:47:59 +0000 (21:47 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 16 Apr 2009 21:47:59 +0000 (21:47 +0000)
commit3f91bb3ce4c8f6e31c4051cc10799e54c3a26a3a
treefcf4f4069c6790edffeb4168566415623a177500
parentc91e40a1795629b02f682bc8216b42c5ec60fccf
make sure to unlock keymgr if the JIT is created and destroyed, all
locks must be matched with unlocks.  Also, use calloc to allocate the
block so that it is properly zero'd.  Thanks to Nick Kledzik for
tracking this down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69314 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JIT.cpp