Unverified Commit a88fdda6 by Edward Thomson Committed by GitHub

Merge pull request #6029 from arroz/fix_6028

#6028: Check if `threadstate->error_t.message` is not `git_buf__initbuf` before freeing.
parents 4fd32be0 27f50a66
......@@ -36,7 +36,8 @@ static void threadstate_dispose(git_threadstate *threadstate)
if (!threadstate)
return;
git__free(threadstate->error_t.message);
if (threadstate->error_t.message != git_buf__initbuf)
git__free(threadstate->error_t.message);
threadstate->error_t.message = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment