mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
34961: replace a couple of free() with zfree() for consistency
This commit is contained in:
parent
33ff5d06f2
commit
89a689e693
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -1409,7 +1409,7 @@ source(char *s)
|
|||
retflag = 0;
|
||||
scriptname = old_scriptname;
|
||||
scriptfilename = old_scriptfilename;
|
||||
free(cmdstack);
|
||||
zfree(cmdstack, CMDSTACKSZ);
|
||||
cmdstack = ocs;
|
||||
cmdsp = ocsp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue