mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-26 05:02:03 +03:00
* util.c (load_file_position): Don't free filename.
This commit is contained in:
parent
f53d62c3e5
commit
926d54ad68
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user