hook: add sign-off using "interpret-trailers"
[gitweb.git] / config.c
index be1c640a4c845bcee1b04f232ea47deda76377d1..4638b0696ab8885afe1fc696dd6e0a25dcc1c89f 100644 (file)
--- a/config.c
+++ b/config.c
@@ -388,8 +388,7 @@ static int git_config_parse_key_1(const char *key, char **store_key, int *basele
 
 out_free_ret_1:
        if (store_key) {
-               free(*store_key);
-               *store_key = NULL;
+               FREE_AND_NULL(*store_key);
        }
        return -CONFIG_INVALID_KEY;
 }