gnokii-commit
[Top][All Lists]
Advanced

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

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-19


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-195-g44c523d
Date: Thu, 08 Apr 2010 16:46:08 +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 "libgnokii and core programs".

The branch, master has been updated
       via  44c523d258ab6d8edbcba130c1f3dfb7a3bdd985 (commit)
      from  69d9289e4896d00a288c4c4056a361b2f19dace2 (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/gnokii.git/commit/?id=44c523d258ab6d8edbcba130c1f3dfb7a3bdd985


commit 44c523d258ab6d8edbcba130c1f3dfb7a3bdd985
Author: Daniele Forsi <address@hidden>
Date:   Thu Apr 8 18:40:33 2010 +0200

    Fix memleak in debug code
    
    ==16092== 1,024 bytes in 1 blocks are still reachable in loss record 8 of 11
    ==16092==    at 0x4023C1C: malloc (vg_replace_malloc.c:195)
    ==16092==    by 0x4320144: icalmemory_new_buffer (in 
/usr/lib/libical.so.0.43.0)
    ==16092==    by 0x431E7A4: icalcomponent_as_ical_string_r (in 
/usr/lib/libical.so.0.43.0)
    ==16092==    by 0x431EB71: icalcomponent_as_ical_string (in 
/usr/lib/libical.so.0.43.0)
    ==16092==    by 0x80677B9: gn_ical2calnote_real (vcal.c:565)
    ==16092==    by 0x8067DCE: gn_ical2calnote (vcal.c:595)
    ==16092==    by 0x804D7F4: writecalendarnote (gnokii-calendar.c:281)
    ==16092==    by 0x804D0B2: parse_options (gnokii.c:899)
    ==16092==    by 0x804C8E2: parse_options (gnokii.c:820)
    ==16092==    by 0x804D36E: main (gnokii.c:1187)

diff --git a/common/vcal.c b/common/vcal.c
index 90444ac..f1a236f 100644
--- a/common/vcal.c
+++ b/common/vcal.c
@@ -548,11 +548,17 @@ static int gn_ical2calnote_real(icalcomponent *comp, 
gn_calnote *calnote, int id
                if (!str)
                        str = "";
                snprintf(calnote->mlocation, sizeof(calnote->mlocation), "%s", 
str);
-
-               dprintf("Component found\n%s\n", 
icalcomponent_as_ical_string(compresult));
        }
-       if (compresult)
+       if (compresult) {
+#ifdef DEBUG
+               char *temp;
+
+               temp = icalcomponent_as_ical_string(compresult);
+               dprintf("Component found\n%s\n", temp);
+               free(temp);
+#endif
                icalcomponent_free(compresult);
+       }
 
        return retval;
 }

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

Summary of changes:
 common/vcal.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs




reply via email to

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