mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
some more memory leak fixes (11745)
This commit is contained in:
parent
d1813a007f
commit
f94e5d78b0
4 changed files with 10 additions and 4 deletions
|
|
@ -192,9 +192,10 @@ scanpmparameters(HashTable ht, ScanFunc func, int flags)
|
|||
static void
|
||||
setpmcommand(Param pm, char *value)
|
||||
{
|
||||
if (isset(RESTRICTED))
|
||||
if (isset(RESTRICTED)) {
|
||||
zwarn("restricted: %s", value, 0);
|
||||
else {
|
||||
zsfree(value);
|
||||
} else {
|
||||
Cmdnam cn = zcalloc(sizeof(*cn));
|
||||
|
||||
cn->flags = HASHED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue