mc_ungetlocalcopy does not free its second argument anymore.
Этот коммит содержится в:
родитель
f17c1f291c
Коммит
a0616a76be
@ -897,6 +897,7 @@ mc_ungetlocalcopy (const char *pathname, const char *local, int has_changed)
|
|||||||
(*vfs->ungetlocalcopy)(vfs, path, local, has_changed) :
|
(*vfs->ungetlocalcopy)(vfs, path, local, has_changed) :
|
||||||
mc_def_ungetlocalcopy (vfs, path, local, has_changed);
|
mc_def_ungetlocalcopy (vfs, path, local, has_changed);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
g_free (local);
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ int mc_rmdir (char *path);
|
|||||||
int mc_mkdir (char *path, mode_t mode);
|
int mc_mkdir (char *path, mode_t mode);
|
||||||
|
|
||||||
char *mc_getlocalcopy (const char *pathname);
|
char *mc_getlocalcopy (const char *pathname);
|
||||||
int mc_ungetlocalcopy (const char *pathname, char *local, int has_changed);
|
int mc_ungetlocalcopy (const char *pathname, const char *local, int has_changed);
|
||||||
int mc_ctl (int fd, int ctlop, void *arg);
|
int mc_ctl (int fd, int ctlop, void *arg);
|
||||||
int mc_setctl (char *path, int ctlop, void *arg);
|
int mc_setctl (char *path, int ctlop, void *arg);
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user