diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-10-28 14:51:13 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-10-28 19:02:36 -0700 |
commit | 3286c408eccb18c525ca123383f3ebf5097441bc (patch) | |
tree | 4422fe16ab4f7b9cf713e0209cbb74fb4115889e /src/errors.c | |
parent | da37654d04617b4dacce6e7a4796007d2854624d (diff) | |
download | libgit2-3286c408eccb18c525ca123383f3ebf5097441bc.tar.gz |
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/errors.c')
-rw-r--r-- | src/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.c b/src/errors.c index 60d774636..18afff3b5 100644 --- a/src/errors.c +++ b/src/errors.c @@ -70,9 +70,9 @@ void git___rethrow(const char *msg, ...) vsnprintf(new_error, sizeof(new_error), msg, va); va_end(va); - old_error = strdup(g_last_error); + old_error = git__strdup(g_last_error); snprintf(g_last_error, sizeof(g_last_error), "%s \n - %s", new_error, old_error); - free(old_error); + git__free(old_error); } void git___throw(const char *msg, ...) |