diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-10 21:46:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-10 21:46:28 +0300 |
commit | f0b567898b08141b3e0f36695c417d3ec589193e (patch) | |
tree | 8e108f3f7cfb8f820ba151c7bca067ac6871b5d3 /mailmap.c | |
parent | 02d263277ab827a1a77cbb6f3c703e8b7181efde (diff) | |
parent | ccdd5d1eb14a6735c34428e856c0de33f1055520 (diff) |
Merge branch 'ab/mailmap-leakfix'
Leakfix.
* ab/mailmap-leakfix:
mailmap.c: fix a memory leak in free_mailap_{info,entry}()
Diffstat (limited to 'mailmap.c')
-rw-r--r-- | mailmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,7 @@ static void free_mailmap_info(void *p, const char *s) s, debug_str(mi->name), debug_str(mi->email)); free(mi->name); free(mi->email); + free(mi); } static void free_mailmap_entry(void *p, const char *s) @@ -52,6 +53,7 @@ static void free_mailmap_entry(void *p, const char *s) me->namemap.strdup_strings = 1; string_list_clear_func(&me->namemap, free_mailmap_info); + free(me); } /* |