Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-10-29 01:51:13 +0400
committerVicent Marti <tanoku@gmail.com>2011-10-29 06:02:36 +0400
commit3286c408eccb18c525ca123383f3ebf5097441bc (patch)
tree4422fe16ab4f7b9cf713e0209cbb74fb4115889e /src/refspec.c
parentda37654d04617b4dacce6e7a4796007d2854624d (diff)
global: Properly use `git__` memory wrappers
Ensure that all memory related functions (malloc, calloc, strdup, free, etc) are using their respective `git__` wrappers.
Diffstat (limited to 'src/refspec.c')
-rw-r--r--src/refspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refspec.c b/src/refspec.c
index ed4b5e6b8..e60e8f5b5 100644
--- a/src/refspec.c
+++ b/src/refspec.c
@@ -32,7 +32,7 @@ int git_refspec_parse(git_refspec *refspec, const char *str)
refspec->dst = git__strdup(delim + 1);
if (refspec->dst == NULL) {
- free(refspec->src);
+ git__free(refspec->src);
refspec->src = NULL;
return GIT_ENOMEM;
}