diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-06-15 15:12:13 +0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-15 07:08:25 -0700 |
commit | eeffa305eb302f52e326f7cb72a787556b8a7f00 (patch) | |
tree | b9dbf1635c46d4ca183934cb8125c2338cea1731 /notmuch-reply.c | |
parent | 565d87c2aab7d3c389a958c068323683316e5e0f (diff) |
Fix memory leak in guess_from_received_header().
Mta variable was not free()d in one case.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r-- | notmuch-reply.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c index dab69e66..64f70bf7 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -401,8 +401,10 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message break; mta = xstrdup (by); token = strtok(mta," \t"); - if (token == NULL) + if (token == NULL) { + free (mta); break; + } /* Now extract the last two components of the MTA host name * as domain and tld. */ |