$NetBSD: patch-au,v 1.1 2007/09/19 22:22:41 wiz Exp $

--- modules/sftp-method.c.orig	2005-01-16 15:50:32.000000000 +0100
+++ modules/sftp-method.c
@@ -2820,11 +2820,12 @@ do_rename (GnomeVFSMethod  *method,
 	buffer_send (&msg, conn->out_fd);
 	buffer_free (&msg);
 
+	res = iobuf_read_result (conn->in_fd, id);
+
+ bail:
 	g_free (old_path);
 	g_free (new_path);
 
-	res = iobuf_read_result (conn->in_fd, id);
-
 	sftp_connection_unref (conn);
 	sftp_connection_unlock (conn);
 
