OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e28a243
)
wt-status: plug memory leak while collecting untracked files
author
Junio C Hamano
<gitster@pobox.com>
Sat, 10 Apr 2010 06:58:27 +0000
(23:58 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 10 Apr 2010 07:43:59 +0000
(
00:43
-0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c
patch
|
blob
|
history
diff --git
a/wt-status.c
b/wt-status.c
index
db20b86
..
c88159a
100644
(file)
--- a/
wt-status.c
+++ b/
wt-status.c
@@
-379,7
+379,10
@@
static void wt_status_collect_untracked(struct wt_status *s)
if (!match_pathspec(s->pathspec, ent->name, ent->len, 0, NULL))
continue;
string_list_insert(ent->name, &s->untracked);
+ free(ent);
}
+
+ free(dir.entries);
}
void wt_status_collect(struct wt_status *s)