diff --git a/src/www_msgs.c b/src/www_msgs.c index 18759dd..91873fd 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -1102,6 +1102,7 @@ int www_send_msg(struct user_record *user, char *to, char *subj, int conference, JAM_DelSubPacket(jsp); JAM_CloseMB(jb); free(jb); + iconv_close(ic); return 0; } else { if (conf.mail_conferences[conference]->mail_areas[area]->type == TYPE_ECHOMAIL_AREA) { @@ -1120,6 +1121,7 @@ int www_send_msg(struct user_record *user, char *to, char *subj, int conference, JAM_DelSubPacket(jsp); JAM_CloseMB(jb); free(jb); + iconv_close(ic); return 1; } return 0;