Plug leaks in formhistory_suggestion_remove
This commit is contained in:
parent
93bec3142f
commit
669167eb9e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue