summaryrefslogtreecommitdiff
path: root/src/win32/utf-conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/utf-conv.c')
-rw-r--r--src/win32/utf-conv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/utf-conv.c b/src/win32/utf-conv.c
index cb607839e..b41c78f92 100644
--- a/src/win32/utf-conv.c
+++ b/src/win32/utf-conv.c
@@ -50,7 +50,7 @@ wchar_t* gitwin_to_utf16(const char* str)
ret = (wchar_t*)git__malloc(cb);
if (MultiByteToWideChar(_active_codepage, 0, str, -1, ret, cb) == 0) {
- free(ret);
+ git__free(ret);
ret = NULL;
}
@@ -79,7 +79,7 @@ char* gitwin_from_utf16(const wchar_t* str)
ret = (char*)git__malloc(cb);
if (WideCharToMultiByte(_active_codepage, 0, str, -1, ret, cb, NULL, NULL) == 0) {
- free(ret);
+ git__free(ret);
ret = NULL;
}