| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…__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 libgit2#6028.
| if (threadstate->error_t.message != git_buf__initbuf) | ||
| git__free(threadstate->error_t.message); |
There was a problem hiding this comment.
LGTM - just a quick whitespace fix:
| if (threadstate->error_t.message != git_buf__initbuf) | |
| git__free(threadstate->error_t.message); | |
| if (threadstate->error_t.message != git_buf__initbuf) | |
| git__free(threadstate->error_t.message); |
Sorry, something went wrong.
|
Thanks for tracking this down! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.