Don't leak an open file handle (CID 702423).

svn path=/trunk/; revision=42642
This commit is contained in:
Gerald Combs 2012-05-15 22:25:35 +00:00
parent 63a5845486
commit 9d9aa0f241
1 changed files with 1 additions and 0 deletions

View File

@ -1111,6 +1111,7 @@ open_as_map_cb(GtkWindow *copy_bt, gpointer data _U_)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Could not create temporary directory\n%s",
map_path);
fclose(tpl_file);
return;
}