diff options
author | Jorge Gorbe Moya <jgorbe@google.com> | 2023-03-27 14:46:08 -0700 |
---|---|---|
committer | Jorge Gorbe Moya <jgorbe@google.com> | 2023-03-27 16:07:36 -0700 |
commit | 4a38d33268959309dd97d9ef423327607bda4104 (patch) | |
tree | 34db1e5df0bfc45f902ab37f4dd52e932b3e6cdb /llvm/unittests/ExecutionEngine/Orc/ExecutionSessionWrapperFunctionCallsTest.cpp | |
parent | 16a2c4e9cd508a7947a61069c97b588b374b88fa (diff) | |
download | llvm-4a38d33268959309dd97d9ef423327607bda4104.zip llvm-4a38d33268959309dd97d9ef423327607bda4104.tar.gz llvm-4a38d33268959309dd97d9ef423327607bda4104.tar.bz2 |
[lldb] Fix double free in python bindings error handling.
If we have a `%typemap(freearg)` that frees the argument, we shouldn't
free it manually on an error path before calling `SWIG_fail`.
`SWIG_fail` will already free the memory in this case, and doing it
manually results in a double free.
Differential Revision: https://reviews.llvm.org/D147007
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/ExecutionSessionWrapperFunctionCallsTest.cpp')
0 files changed, 0 insertions, 0 deletions