mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-27 13:17:56 +01:00
Fix memory leak in guess_from_received_header().
Mta variable was not free()d in one case.
This commit is contained in:
parent
565d87c2aa
commit
eeffa305eb
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue