From b693bb3fb962c54767f8430058575441df243b13 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 26 Aug 2012 15:35:48 -0700 Subject: [PATCH] Might as well free current_file In commit fd2debc1e730 ("replaced stdndup() with the inlined equivalent") Lubomir freed the memory from one of my two strdups but not the other. Signed-off-by: Dirk Hohndel --- gtk-gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk-gui.c b/gtk-gui.c index bebc4f9..895ef44 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -222,6 +222,7 @@ static void file_save_as(GtkWidget *w, gpointer data) gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), current_file); free(current_dir); + free(current_file); if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); -- 2.45.2