author | Florian Forster <octo@collectd.org> | |
Wed, 17 Jun 2015 08:37:31 +0000 (10:37 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 17 Jun 2015 08:37:31 +0000 (10:37 +0200) | ||
commit | 1205b167f300adacdcf7d5dd385299d2b05ace32 | |
tree | 1b03f26eb2d2db31cf0364278e1a18a73189acb7 | tree | snapshot |
parent | 7f6c4a16fdacab6c11f8a7756f0d8438ce198288 | commit | diff |
email plugin: Fix freeing linked lists.
The previous code essentially did:
for (…; …; ptr = ptr->next)
free (ptr);
The "ptr->next" is a use-after-free.
The previous code essentially did:
for (…; …; ptr = ptr->next)
free (ptr);
The "ptr->next" is a use-after-free.
src/email.c | diff | blob | history |