diff options
-rw-r--r-- | futility/updater_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater_utils.c b/futility/updater_utils.c index fadfd04b..36ea7981 100644 --- a/futility/updater_utils.c +++ b/futility/updater_utils.c @@ -709,8 +709,8 @@ void remove_all_temp_files(struct tempfile *head) /* head itself is dummy and should not be removed. */ assert(!head->filepath); struct tempfile *next = head->next; + head->next = NULL; while (next) { - head->next = NULL; head = next; next = head->next; assert(head->filepath); |