Some piece of memory was freed twice.
Minor clean-up for gcc -Wall.
Этот коммит содержится в:
родитель
b22b4b6c70
Коммит
f931d6b5d4
@ -1,3 +1,8 @@
|
|||||||
|
Fri Sep 18 10:37:28 1998 Pavel Roskin <pavel_roskin@geocities.com)
|
||||||
|
|
||||||
|
* extfs.c: free() was called twice for the some place in memory
|
||||||
|
in extfs_open()
|
||||||
|
|
||||||
Tue Sep 15 20:31:32 1998 Norbert Warmuth <k3190@fh-sw.de>
|
Tue Sep 15 20:31:32 1998 Norbert Warmuth <k3190@fh-sw.de>
|
||||||
|
|
||||||
* ftpfs.c (ftp_use_unix_list_options): New global variable/option.
|
* ftpfs.c (ftp_use_unix_list_options): New global variable/option.
|
||||||
|
@ -187,7 +187,6 @@ static FILE *open_archive (int fstype, char *name, struct archive **pparc)
|
|||||||
struct entry *root_entry;
|
struct entry *root_entry;
|
||||||
char *local_name = NULL, *tmp = 0;
|
char *local_name = NULL, *tmp = 0;
|
||||||
int uses_archive = extfs_need_archive [fstype];
|
int uses_archive = extfs_need_archive [fstype];
|
||||||
char *tmpfile;
|
|
||||||
|
|
||||||
if (uses_archive){
|
if (uses_archive){
|
||||||
if (mc_stat (name, &mystat) == -1)
|
if (mc_stat (name, &mystat) == -1)
|
||||||
@ -622,12 +621,10 @@ static void *extfs_open (char *file, int flags, int mode)
|
|||||||
free (entry->inode->local_filename);
|
free (entry->inode->local_filename);
|
||||||
entry->inode->local_filename = NULL;
|
entry->inode->local_filename = NULL;
|
||||||
free (cmd);
|
free (cmd);
|
||||||
free (mc_extfsdir);
|
|
||||||
my_errno = EIO;
|
my_errno = EIO;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
free (cmd);
|
free (cmd);
|
||||||
free (mc_extfsdir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local_handle = open (entry->inode->local_filename, flags, mode);
|
local_handle = open (entry->inode->local_filename, flags, mode);
|
||||||
|
@ -72,6 +72,7 @@ void extfs_fill_names (void (*func)(char *));
|
|||||||
int extfs_prefix_to_type (char *path);
|
int extfs_prefix_to_type (char *path);
|
||||||
char *extfs_get_prefix (int fstype);
|
char *extfs_get_prefix (int fstype);
|
||||||
char *extfs_analysis (char *path, char **arc_name, int *fstype, int is_dir);
|
char *extfs_analysis (char *path, char **arc_name, int *fstype, int is_dir);
|
||||||
|
int extfs_which (char *path);
|
||||||
void extfs_run (char *path);
|
void extfs_run (char *path);
|
||||||
void extfs_done (void);
|
void extfs_done (void);
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user