Do not free paths returned from vfs_s_get_path_mangle.

This commit is contained in:
Pavel Machek 2000-04-03 10:35:48 +00:00
parent b15c763325
commit 24c6ab65f5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-04-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c (send_ftp_command): return from vfs_s_get_path_mangle is
not strdupped(), so it must not be g_free'd.
2000-03-29 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* fish.c: Patch by <rebel@atrey.karlin.mff.cuni.cz>: make

View File

@ -1440,7 +1440,6 @@ send_ftp_command(vfs *me, char *filename, char *cmd, int flags)
if (!(rpath = vfs_s_get_path_mangle(me, filename, &super, 0)))
return -1;
p = translate_path (me, super, rpath);
g_free(rpath);
r = command (me, super, WAIT_REPLY, cmd, p);
g_free (p);
vfs_add_noncurrent_stamps (&vfs_ftpfs_ops, (vfsid) super, NULL);