summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 637cd4a7..58dc493f 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -1880,8 +1880,9 @@ dcc_send (struct session *sess, char *to, char *filename, gint64 maxcps, int pas
 	{
 		PrintText (sess, "Cannot send directories or empty files.\n");
 
-		g_object_unref (file_info);
 		dcc_close (dcc, 0, TRUE); /* dcc_close will free dcc->file */
+
+		return;
 	}
 
 	if (passive || dcc_listen_init (dcc, sess))