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, 3 insertions, 0 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index ca1be140..169a0f76 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -1805,7 +1805,10 @@ dcc_send (struct session *sess, char *to, char *file, int maxcps, int passive)
 
 	dcc = new_dcc ();
 	if (!dcc)
+	{
+		free (file);
 		return;
+	}
 	dcc->file = file;
 	dcc->maxcps = maxcps;