diff --git a/src/lib/update/anno.c b/src/lib/update/anno.c index ba0f93bf..0dc63031 100644 --- a/src/lib/update/anno.c +++ b/src/lib/update/anno.c @@ -99,6 +99,9 @@ delete_old_announcements(void) if (rename(tmp_filename, annfil) != 0) logerror("can't move temporary telegram file %s " "to telegram file %s", tmp_filename, annfil); + } else { + if (remove(tmp_filename) < 0) + logerror("can't delete telegram file %s", tmp_filename); } }