diff options
author | Martin Ågren <martin.agren@gmail.com> | 2018-05-20 12:42:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-21 13:57:57 +0900 |
commit | e7347cb9ba350880e6ccccd6fa6a33cec04c5111 (patch) | |
tree | 6ec50d48a50cb659c8fa42b03e5f616f97cee50f /streaming.h | |
parent | config: let `config_store_data_clear()` handle `value_regex` (diff) | |
download | tgif-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 'streaming.h')
0 files changed, 0 insertions, 0 deletions