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_29-35


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-353-ged3253c
Date: Fri, 10 Feb 2012 19:17:47 +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  ed3253c3ecb76b4a7eea255843495e0005b6274b (commit)
      from  5ddffe4a07080f40f665165e4c481af381235ddc (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=ed3253c3ecb76b4a7eea255843495e0005b6274b


commit ed3253c3ecb76b4a7eea255843495e0005b6274b
Author: Pawel Kot <address@hidden>
Date:   Fri Feb 10 19:22:39 2012 +0100

    [smsd/sqlite3] Do not leak memory when insert to db fails
    
    Patch by Pedro Aguilar.

diff --git a/smsd/sqlite.c b/smsd/sqlite.c
index d189c76..e1c039b 100644
--- a/smsd/sqlite.c
+++ b/smsd/sqlite.c
@@ -101,6 +101,7 @@ GNOKII_API gint DB_InsertSMS(const gn_sms * const data, 
const gchar * const phon
     if (error != SQLITE_OK) {
         g_print(_("%d: Parsing query %s failed!"), __LINE__, buf->str);
         g_print(_("Error: %s"), sqlite3_errmsg(ppDbInbox));
+        g_string_free(buf, TRUE);
         return SMSD_NOK;
     }
 

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

Summary of changes:
 smsd/sqlite.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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