1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Fix order of freeing memory

This commit is contained in:
Mithil Poojary 2020-10-03 03:30:14 +05:30 committed by Brenden Matthews
parent 87a31ba039
commit b97eff4dbe

View File

@ -350,11 +350,11 @@ static void mbox_scan(char *args, char *output, size_t max_len) {
}
strncat(output, buf, max_len - strlen(output));
tmp = curr;
curr = curr->previous;
free(tmp->from);
free(tmp->subject);
free(tmp);
tmp = curr->previous;
free(curr->from);
free(curr->subject);
free(curr);
curr = tmp;
i--;
}