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:
parent
87a31ba039
commit
b97eff4dbe
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user