Fix use after free

This commit is contained in:
TingPing 2014-12-14 19:35:27 -05:00
parent 7e4c482737
commit 226d54c90d
1 changed files with 2 additions and 1 deletions

View File

@ -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"); 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 */ dcc_close (dcc, 0, TRUE); /* dcc_close will free dcc->file */
return;
} }
if (passive || dcc_listen_init (dcc, sess)) if (passive || dcc_listen_init (dcc, sess))