LLVMJIT: Free created module in LLVM < 5.
authorAndres Freund <andres@anarazel.de>
Mon, 26 Mar 2018 23:04:39 +0000 (16:04 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 26 Mar 2018 23:04:39 +0000 (16:04 -0700)
commit071371bc43c89d6db923a7f858933f655b150655
tree19c64070992f2d99dea9e1d847d7de1e1fd82e29
parent0976c4ddd4c98d64b2f3140ee96b92367b763a44
LLVMJIT: Free created module in LLVM < 5.

Due to the differing APIs between versions, I forgot to deallocate the
generated module in older LLVM versions, leading to a memory leak.

Author: Andres Freund
src/backend/jit/llvm/llvmjit.c