Stick a comment to update-cache.c:refresh_cache() that you can't

just free(archive_cache[i]) when replacing it there.
This commit is contained in:
Petr Baudis 2005-04-17 23:34:51 +02:00 committed by Petr Baudis
parent cb1da3a794
commit 62d046a07b

View File

@ -249,6 +249,9 @@ static int refresh_cache(void)
continue; continue;
} }
active_cache_changed = 1; active_cache_changed = 1;
/* You can NOT just free active_cache[i] here, since it
* might not be necessarily malloc()ed but can also come
* from mmap(). */
active_cache[i] = new; active_cache[i] = new;
} }
return has_errors; return has_errors;