diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-01 12:41:11 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-01 08:47:38 -0700 |
| commit | 9642479a2b62f7a3f3bf6086c02157c745bb5d74 (patch) | |
| tree | b71cb77986a281c689b60ed51c397b9d11dce212 /t | |
| parent | 1f0899978109d732abe5b4825b5cfa40ef1d5885 (diff) | |
| download | git-9642479a2b62f7a3f3bf6086c02157c745bb5d74.tar.xz | |
convert: fix leaking config strings
In `read_convert_config()`, we end up reading some string values into
variables. We don't free any potentially-existing old values though,
which will result in a memory leak in case the same key has been defined
multiple times.
Fix those leaks.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0021-conversion.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index 0b4997022b..eeb2714d9d 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -5,6 +5,7 @@ test_description='blob conversion via gitattributes' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh . "$TEST_DIRECTORY"/lib-terminal.sh |
