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 /commit-graph.c | |
| parent | The fourteenth batch (diff) | |
| download | git-56f1cd10f48a5f630633a0e65696917e6f70fdd9.tar.gz git-56f1cd10f48a5f630633a0e65696917e6f70fdd9.zip | |
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 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
