diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-28 22:31:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-28 22:31:42 (GMT) |
commit | ce174b991223c85afba55a24e7adc9c8156f7d48 (patch) | |
tree | 90f3d3cdb4b83865cfaeaa6674165b3c22df7ef0 /plugins/pychrysalide/arch/register.c | |
parent | 2700e6892a0c0d78baf7228040aa07a1e21c6f53 (diff) |
Fixed several memory leaks.
Diffstat (limited to 'plugins/pychrysalide/arch/register.c')
-rw-r--r-- | plugins/pychrysalide/arch/register.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pychrysalide/arch/register.c b/plugins/pychrysalide/arch/register.c index 2a407b5..61da77f 100644 --- a/plugins/pychrysalide/arch/register.c +++ b/plugins/pychrysalide/arch/register.c @@ -236,6 +236,8 @@ static guint py_arch_register___hash___wrapper(const GArchRegister *reg) } + Py_DECREF(pyobj); + PyGILState_Release(gstate); return result; @@ -302,6 +304,8 @@ static int py_arch_register___cmp___wrapper(const GArchRegister *a, const GArchR } + Py_DECREF(pyobj); + PyGILState_Release(gstate); return result; @@ -354,6 +358,8 @@ static void py_arch_register_print_wrapper(const GArchRegister *reg, GBufferLine } + Py_DECREF(pyobj); + PyGILState_Release(gstate); } @@ -406,6 +412,8 @@ static bool py_arch_register_is_base_pointer_wrapper(const GArchRegister *reg) } + Py_DECREF(pyobj); + PyGILState_Release(gstate); return result; @@ -460,6 +468,8 @@ static bool py_arch_register_is_stack_pointer_wrapper(const GArchRegister *reg) } + Py_DECREF(pyobj); + PyGILState_Release(gstate); return result; |