fsmonitor: do not forget to release the token in `discard_index()`

In 56c6910028a (fsmonitor: change last update timestamp on the index_state to opaque token, 2020-01-07), we forgot to adjust `discard_index()` to release the "last-update" token: it is no longer a 64-bit number, but a free-form string that has been allocated. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Mar 17, 2021 at 15:30 UTC 4abc57848d8ace8218952c7376fa397c0850392c
1 file changed +1
read-cache.c
+1
@@ -2355,6 +2355,7 @@ int discard_index(struct index_state *istate)
2355 cache_tree_free(&(istate->cache_tree));
2356 istate->initialized = 0;
2357 istate->fsmonitor_has_run_once = 0;
2358 + FREE_AND_NULL(istate->fsmonitor_last_update);
2359 FREE_AND_NULL(istate->cache);
2360 istate->cache_alloc = 0;
2361 discard_split_index(istate);