aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uid.c b/uid.c
index 8cf753d0..09ea5684 100644
--- a/uid.c
+++ b/uid.c
@@ -332,6 +332,7 @@ void update_str_lists(struct query *ctl)
/* perform end-of-query actions on UID lists */
{
free_str_list(&ctl->oldsaved);
+ free_str_list(&scratchlist);
ctl->oldsaved = ctl->newsaved;
ctl->newsaved = (struct idlist *) NULL;
@@ -364,7 +365,7 @@ void write_saved_lists(struct query *hostlist, const char *idfile)
}
/* either nuke the file or write updated last-seen IDs */
- if (!idcount)
+ if (!idcount && !scratchlist)
{
if (outlevel >= O_DEBUG)
report(stdout, "Deleting fetchids file.\n");