diff options
Diffstat (limited to 'Src/compat.c')
-rw-r--r-- | Src/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/compat.c b/Src/compat.c index 09b3d6a5f..b3a8b063c 100644 --- a/Src/compat.c +++ b/Src/compat.c @@ -443,7 +443,7 @@ zgetcwd(void) ret = getcwd(cwdbuf, PATH_MAX); if (ret) ret = dupstring(ret); - free(cwdbuf); + zfree(cwdbuf, PATH_MAX); #endif /* GETCWD_CALLS_MALLOC */ } #endif /* HAVE_GETCWD */ |