diff options
| author | Lidong Yan <502024330056@smail.nju.edu.cn> | 2025-05-13 02:49:10 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-15 13:50:18 -0700 |
| commit | 56f1cd10f48a5f630633a0e65696917e6f70fdd9 (patch) | |
| tree | 90cfae52de6a8cf9cd3dc27a5d029c1ea61c2270 /git-gui/git-gui.sh | |
| parent | 1a8a4971cc6c179c4dd711f4a7f5d7178f4b3ab7 (diff) | |
mailinfo: fix pointential memory leak if `decode_header` failed
In mailinfo.c:decode_header, if convert_to_utf8 failed, the strbuf stored
in dec will leak. Simply add strbuf_release and free(dec) will solve
this problem.
Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions
