[perl-Glib-Object-Introspection/ppc64-fixes: 4/6] Fix a leak when throwing an exception during C invocation



commit 6903ae6e7f419f1c3eec64518bdc7662cb849783
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Sun Sep 7 18:49:53 2014 +0200

    Fix a leak when throwing an exception during C invocation

 gperl-i11n-invoke-c.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gperl-i11n-invoke-c.c b/gperl-i11n-invoke-c.c
index b15df84..8b5c2c4 100644
--- a/gperl-i11n-invoke-c.c
+++ b/gperl-i11n-invoke-c.c
@@ -200,6 +200,7 @@ invoke_c_code (GICallableInfo *info,
        invoke_free_after_call_handlers (&iinfo.base);
 
        if (local_error) {
+               _clear_c_invocation_info (&iinfo);
                gperl_croak_gerror (NULL, local_error);
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]