Thread (13 messages) 13 messages, 3 authors, 2016-06-15

[PATCH v2 07/10] dir: free untracked cache when removing it

flat view
STALE3769d

From: Christian Couder <hidden>
Date: 2016-06-15 23:07:28
Subsystem: the rest · Maintainer: Linus Torvalds

Revision v2 of 9 in this series.

Revisions (9)
  1. rfc [diff vs current]
  2. v1 [diff vs current]
  3. v2 current
  4. v3 [diff vs current]
  5. v4 [diff vs current]
  6. v5 [diff vs current]
  7. v6 [diff vs current]
  8. v7 [diff vs current]
  9. v8 [diff vs current]
Signed-off-by: Christian Couder <redacted>
---
 dir.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/dir.c b/dir.c
index ffc0286..3b83cc0 100644
--- a/dir.c
+++ b/dir.c
@@ -1954,6 +1954,7 @@ void add_untracked_cache(void)
 
 void remove_untracked_cache(void)
 {
+	free_untracked_cache(the_index.untracked);
 	the_index.untracked = NULL;
 	the_index.cache_changed |= UNTRACKED_CHANGED;
 }
-- 
2.6.3.479.g8eb29d4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help