diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-05 12:09:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-05 08:49:11 -0700 |
commit | b8849e236f7a32d43ab3ba087587a336d69329b0 (patch) | |
tree | 6b1df61ebb81e62c9ce99caf9312dafb01e5acb7 /commit.h | |
parent | 49d47eb5416d22f185877a57380a1ffc28f172e1 (diff) |
gpg-interface: fix misdesigned signing key interfaces
The interfaces to retrieve signing keys and their IDs are misdesigned as
they return string constants even though they indeed allocate memory,
which leads to memory leaks. Refactor the code to instead always return
allocated strings and let the callers free them accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions