From 669167eb9eef603d03b62bb466cff0570055a757 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 13 Feb 2012 01:31:02 +0100 Subject: [PATCH] Plug leaks in formhistory_suggestion_remove --- extensions/formhistory/formhistory-gdom-frontend.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.5