mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 19:38:07 +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;
|
break;
|
||||||
mta = xstrdup (by);
|
mta = xstrdup (by);
|
||||||
token = strtok(mta," \t");
|
token = strtok(mta," \t");
|
||||||
if (token == NULL)
|
if (token == NULL) {
|
||||||
|
free (mta);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
/* Now extract the last two components of the MTA host name
|
/* Now extract the last two components of the MTA host name
|
||||||
* as domain and tld.
|
* as domain and tld.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue