X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwin32_replacements.c;h=41706382ad83b7c4c9fca3344071e52826011a49;hp=d3757a3f35ed843039e8c9f085f28a90386a9f3d;hb=4f9ccdbed3ee79171d0b861c4ba93b54ce8feaac;hpb=d919e6c00b99ae2196cadc517d2da3b3971465b3;ds=inline diff --git a/src/win32_replacements.c b/src/win32_replacements.c index d3757a3f..41706382 100644 --- a/src/win32_replacements.c +++ b/src/win32_replacements.c @@ -88,7 +88,7 @@ realpath(const wchar_t *path, wchar_t *resolved_path) ret = GetFullPathNameW(path, ret, resolved_path, NULL); if (!ret) { err = GetLastError(); - free(resolved_path); + FREE(resolved_path); resolved_path = NULL; goto fail_win32; } @@ -455,8 +455,8 @@ globfree(glob_t *pglob) { size_t i; for (i = 0; i < pglob->gl_pathc; i++) - free(pglob->gl_pathv[i]); - free(pglob->gl_pathv); + FREE(pglob->gl_pathv[i]); + FREE(pglob->gl_pathv); } #endif /* __WIN32__ */