diff options
-rw-r--r-- | ui-stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-stats.c b/ui-stats.c index a9c13fd..8cd9178 100644 --- a/ui-stats.c +++ b/ui-stats.c | |||
@@ -184,9 +184,9 @@ static void add_commit(struct string_list *authors, struct commit *commit, | |||
184 | period->trunc(date); | 184 | period->trunc(date); |
185 | tmp = xstrdup(period->pretty(date)); | 185 | tmp = xstrdup(period->pretty(date)); |
186 | item = string_list_insert(items, tmp); | 186 | item = string_list_insert(items, tmp); |
187 | if (item->util) | ||
188 | free(tmp); | ||
189 | counter = (uintptr_t *)&item->util; | 187 | counter = (uintptr_t *)&item->util; |
188 | if (*counter) | ||
189 | free(tmp); | ||
190 | (*counter)++; | 190 | (*counter)++; |
191 | 191 | ||
192 | authorstat->total++; | 192 | authorstat->total++; |