Fix free/delete mismatch in LLVMGetNativeCodeFromModule
This commit is contained in:
parent
8ca0e79bd0
commit
5fc5ba2e66
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ _wLLVMGetNativeCodeFromModule(PyObject * self, PyObject * args)
|
|||
const char *chars = reinterpret_cast<const char*>(ubytes) ;
|
||||
PyObject * ret = PyBytes_FromStringAndSize(chars, len);
|
||||
|
||||
LLVMDisposeMessage(const_cast<char*>(chars));
|
||||
delete [] ubytes;
|
||||
|
||||
return ret;
|
||||
LLVMPY_CATCH_ALL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue