mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
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:
parent
cb1da3a794
commit
62d046a07b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user