summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c
index aad6c4482..7a6bbd654 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -173,7 +173,7 @@ void giterr_set_str(int error_class, const char *string)
{
git_error *error = &GIT_GLOBAL->error_t;
- free(error->message);
+ git__free(error->message);
error->message = git__strdup(string);
error->klass = error_class;