From: Christian Dywan Date: Mon, 13 Feb 2012 00:31:02 +0000 (+0100) Subject: Plug leaks in formhistory_suggestion_remove X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=669167eb9eef603d03b62bb466cff0570055a757;p=midori Plug leaks in formhistory_suggestion_remove --- diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c index 4bb0944e..4be28df7 100644 --- a/extensions/formhistory/formhistory-gdom-frontend.c +++ b/extensions/formhistory/formhistory-gdom-frontend.c @@ -87,6 +87,8 @@ formhistory_suggestion_remove (GtkTreePath* path, sqlcmd = sqlite3_mprintf ("DELETE FROM forms WHERE field = '%q' AND value = '%q'", name, value); + g_free (name); + g_free (value); sqlite3_exec (priv->db, sqlcmd, NULL, NULL, &errmsg); sqlite3_free (sqlcmd); }