From b17c0276de4da4cd75114d7e1c67738f894ad59e Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 12 Feb 2014 10:28:53 -0500 Subject: Fix some leaks --- src/common/dcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/dcc.c') 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; -- cgit 1.4.1