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>
|
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
|
* 34961: Completion/Base/Completer/_expand: add backslash to alias
|
||||||
expansion matching (related to workers/32186)
|
expansion matching (related to workers/32186)
|
||||||
|
|
||||||
|
|
|
@ -443,7 +443,7 @@ zgetcwd(void)
|
||||||
ret = getcwd(cwdbuf, PATH_MAX);
|
ret = getcwd(cwdbuf, PATH_MAX);
|
||||||
if (ret)
|
if (ret)
|
||||||
ret = dupstring(ret);
|
ret = dupstring(ret);
|
||||||
free(cwdbuf);
|
zfree(cwdbuf, PATH_MAX);
|
||||||
#endif /* GETCWD_CALLS_MALLOC */
|
#endif /* GETCWD_CALLS_MALLOC */
|
||||||
}
|
}
|
||||||
#endif /* HAVE_GETCWD */
|
#endif /* HAVE_GETCWD */
|
||||||
|
|
|
@ -1409,7 +1409,7 @@ source(char *s)
|
||||||
retflag = 0;
|
retflag = 0;
|
||||||
scriptname = old_scriptname;
|
scriptname = old_scriptname;
|
||||||
scriptfilename = old_scriptfilename;
|
scriptfilename = old_scriptfilename;
|
||||||
free(cmdstack);
|
zfree(cmdstack, CMDSTACKSZ);
|
||||||
cmdstack = ocs;
|
cmdstack = ocs;
|
||||||
cmdsp = ocsp;
|
cmdsp = ocsp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue