34961: replace a couple of free() with zfree() for consistency

This commit is contained in:
Barton E. Schaefer 2015-04-25 10:48:43 -07:00
parent 33ff5d06f2
commit 89a689e693
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2015-04-25 Barton E. Schaefer <schaefer@zsh.org>
* 34961: Src/compat.c, Src/init.c: replace a couple of free() with
zfree() for consistency.
* 34961: Completion/Base/Completer/_expand: add backslash to alias
expansion matching (related to workers/32186)

View file

@ -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 */

View file

@ -1409,7 +1409,7 @@ source(char *s)
retflag = 0;
scriptname = old_scriptname;
scriptfilename = old_scriptfilename;
free(cmdstack);
zfree(cmdstack, CMDSTACKSZ);
cmdstack = ocs;
cmdsp = ocsp;