dotgnu-pnet-commits
[Top][All Lists]
Advanced

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

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Just In Time compiler (l


From: Aleksey Demakov
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Just In Time compiler (libjit) branch, master, updated. e6a774b252f2bc900a4dcb43ae841603bc0f00ac
Date: Tue, 06 Nov 2012 14:13:43 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET Just In Time compiler (libjit)".

The branch, master has been updated
       via  e6a774b252f2bc900a4dcb43ae841603bc0f00ac (commit)
      from  568424e04c6df255e3f2aed142d21b218ee7e0b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/libjit.git/commit/?id=e6a774b252f2bc900a4dcb43ae841603bc0f00ac

commit e6a774b252f2bc900a4dcb43ae841603bc0f00ac
Author: Aleksey Demakov <address@hidden>
Date:   Tue Nov 6 17:13:21 2012 +0300

    Fix a memory leak in dpas.

diff --git a/ChangeLog b/ChangeLog
index 0a945a0..7469571 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-11-06  Aleksey Demakov  <address@hidden>
 
+       * dpas/dpas-scope.c (dpas_scope_destroy): Fix a memory leak in dpas.
+
        * include/jit/jit-memory.h, jit/jit-internal.h, jit/jit-memory.c
        * jit-cache.c: restore ability to allocate memory for recompiled
        functions.
diff --git a/dpas/dpas-scope.c b/dpas/dpas-scope.c
index e9b1878..15a7bf3 100644
--- a/dpas/dpas-scope.c
+++ b/dpas/dpas-scope.c
@@ -87,6 +87,10 @@ void dpas_scope_destroy(dpas_scope_t scope)
                        {
                                jit_free(item->name);
                        }
+                       if(item->filename)
+                       {
+                               jit_free(item->filename);
+                       }
                        if(item->free_info)
                        {
                                (*(item->free_info))(item->info);
@@ -103,6 +107,10 @@ void dpas_scope_destroy(dpas_scope_t scope)
                        {
                                jit_free(item->name);
                        }
+                       if(item->filename)
+                       {
+                               jit_free(item->filename);
+                       }
                        if(item->free_info)
                        {
                                (*(item->free_info))(item->info);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    2 ++
 dpas/dpas-scope.c |    8 ++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET Just In Time compiler (libjit)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]