Commit 27f50a66124054518d5febe984bccad02ee0846b

Miguel Arroz 2021-09-02T18:59:19

#6028: Check if `threadstate->error_t.message` is not `git_buf__initbuf` before freeing. This follows the same principle as `buffer.c` where the same check is done before freeing the buffer. It fixes the crash described in #6028.