diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-07 08:39:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-07 10:30:54 -0700 |
commit | c77756015e66e5fc601cfb6a368c37ef1f94285a (patch) | |
tree | 818ccee902ae33e40d92290270b7f948278489b0 /commit-graph.c | |
parent | 844d190677216c0754287f14d9474a55adf606a4 (diff) |
mailmap: always store allocated strings in mailmap blob
Same as with the preceding commit, the `git_mailmap_blob` may sometimes
contain an allocated string and sometimes it may contain a string
constant. This is risky and can easily lead to bugs in case the variable
is getting re-assigned, where the code may then try to free the previous
value to avoid memory leaks.
Safeguard the code by always storing allocated strings in the variable.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions