* util.c (load_file_position): Don't free filename.

This commit is contained in:
Pavel Roskin 2002-12-09 16:42:20 +00:00
parent f53d62c3e5
commit 926d54ad68
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-12-09 Pavel Roskin <proski@gnu.org>
* util.c (load_file_position): Don't free filename.
2002-12-08 Pavel Roskin <proski@gnu.org>
* util.c: Add functions for saving and loading file positions.

View File

@ -1264,10 +1264,8 @@ load_file_position (char *filename, long *line, long *column)
fn = concat_dir_and_file (home_dir, MC_FILEPOS);
f = fopen (fn, "r");
g_free (fn);
if (!f) {
g_free (filename);
if (!f)
return;
}
len = strlen (filename);