(mail_send): Bugfix. Removed free(p) and prevent from later segmentation
fault.
Showing
1 changed file
with
1 additions
and
4 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
3 | 3 | ||
4 | GNU Mailutils is free software; you can redistribute it and/or modify | 4 | GNU Mailutils is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
... | @@ -189,10 +189,7 @@ mail_send (int argc, char **argv) | ... | @@ -189,10 +189,7 @@ mail_send (int argc, char **argv) |
189 | } | 189 | } |
190 | } | 190 | } |
191 | else | 191 | else |
192 | { | ||
193 | compose_header_set (&env, MU_HEADER_TO, p, COMPOSE_SINGLE_LINE); | 192 | compose_header_set (&env, MU_HEADER_TO, p, COMPOSE_SINGLE_LINE); |
194 | free (p); | ||
195 | } | ||
196 | } | 193 | } |
197 | } | 194 | } |
198 | 195 | ... | ... |
-
Please register or sign in to post a comment