about summary refs log tree commit diff
path: root/Src
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
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')
-rw-r--r--Src/compat.c2
-rw-r--r--Src/init.c2
2 files changed, 2 insertions, 2 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 */
diff --git a/Src/init.c b/Src/init.c
index 3e41fb9dd..102276a64 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1409,7 +1409,7 @@ source(char *s)
 	retflag = 0;
     scriptname = old_scriptname;
     scriptfilename = old_scriptfilename;
-    free(cmdstack);
+    zfree(cmdstack, CMDSTACKSZ);
     cmdstack = ocs;
     cmdsp = ocsp;