提交 62d046a0 编写于 作者: P Petr Baudis 提交者: Petr Baudis

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

just free(archive_cache[i]) when replacing it there.
上级 cb1da3a7
......@@ -249,6 +249,9 @@ static int refresh_cache(void)
continue;
}
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;
}
return has_errors;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册