diff options
author | TingPing <tingping@tingping.se> | 2014-02-12 10:28:53 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-02-12 10:31:11 -0500 |
commit | b17c0276de4da4cd75114d7e1c67738f894ad59e (patch) | |
tree | d6a9a824d704b8bdee5c2a1800b0fbffa1bd4b46 /src/common/dcc.c | |
parent | ba399eb7f9f788f2a261f1e912be79f742fd2070 (diff) |
Fix some leaks
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r-- | src/common/dcc.c | 3 |
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; |