--- gnokii.git/smsd/sqlite.c 2012-02-10 10:14:54.865267579 +0100 +++ gnokii-0.6.31/smsd/sqlite.c 2012-02-10 10:11:26.413274941 +0100 @@ -101,6 +115,7 @@ 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; }