summary refs log tree commit diff
path: root/Src/compat.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-04-25 10:48:43 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-04-25 10:48:43 -0700
commit89a689e69376909265d94ad8c2119d607ef7cb3d (patch)
treec19c6ac53fe9d65bfaab6c9cde7a7ebe4ffae377 /Src/compat.c
parent33ff5d06f264421480ecf35575d12fb981080066 (diff)
downloadzsh-89a689e69376909265d94ad8c2119d607ef7cb3d.tar.gz
zsh-89a689e69376909265d94ad8c2119d607ef7cb3d.tar.xz
zsh-89a689e69376909265d94ad8c2119d607ef7cb3d.zip
34961: replace a couple of free() with zfree() for consistency
Diffstat (limited to 'Src/compat.c')
-rw-r--r--Src/compat.c2
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 */