]> spindle.queued.net Git - midori/commitdiff
Plug leaks in formhistory_suggestion_remove
authorChristian Dywan <christian@twotoasts.de>
Mon, 13 Feb 2012 00:31:02 +0000 (01:31 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 13 Feb 2012 00:31:02 +0000 (01:31 +0100)
extensions/formhistory/formhistory-gdom-frontend.c

index 4bb0944e1bd24ec3218662b6e987a36a4f7a97fc..4be28df75db832985756d8080c0e9db0651c7443 100644 (file)
@@ -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);
 }