summaryrefslogtreecommitdiff
path: root/rerere.c
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2018-05-20 12:42:35 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-21 13:57:57 +0900
commite7347cb9ba350880e6ccccd6fa6a33cec04c5111 (patch)
tree6ec50d48a50cb659c8fa42b03e5f616f97cee50f /rerere.c
parentconfig: let `config_store_data_clear()` handle `value_regex` (diff)
downloadtgif-e7347cb9ba350880e6ccccd6fa6a33cec04c5111.tar.xz
config: let `config_store_data_clear()` handle `key`
Instead of remembering to free `key` in each code path, let `config_store_data_clear()` handle that. We still need to free it before replacing it, though. Move that freeing closer to the replacing to be safe. Note that in that same part of the code, we can no longer set `key` to the original pointer, but need to `xstrdup()` it. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rerere.c')
0 files changed, 0 insertions, 0 deletions