diff options
author | TingPing <tingping@tingping.se> | 2014-12-14 19:35:27 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-12-14 19:35:27 -0500 |
commit | 226d54c90d604b5c085fe0e0206dd3f1e8decf2a (patch) | |
tree | 359c7a3bd0464ad4316fb878b068118aa4e0883d | |
parent | 7e4c482737b508f376d8e055268833d28f61d855 (diff) |
Fix use after free
-rw-r--r-- | src/common/dcc.c | 3 |
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)) |