Commit a379e652 by nulltoken

refspec: prevent git_refspec__free() from segfaulting

Fix libgit2/libgit2sharp#247
parent 3a5e8fae
......@@ -127,6 +127,9 @@ int git_refspec__parse(git_refspec *refspec, const char *input, bool is_fetch)
void git_refspec__free(git_refspec *refspec)
{
if (refspec == NULL)
return;
git__free(refspec->src);
git__free(refspec->dst);
}
......
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