diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-02 08:28:42 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-02 08:28:42 +0000 |
commit | 323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5 (patch) | |
tree | 5e16f71a41933baac7e01b9ce70c80afea69896b /Src/module.c | |
parent | ed708a901be74fe49c6357db0b10f5bf451edadf (diff) | |
download | zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.gz zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.xz zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.zip |
Felix: fix for memory leak (11718)
Diffstat (limited to 'Src/module.c')
-rw-r--r-- | Src/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/module.c b/Src/module.c index fdaab61c5..c9d643aa6 100644 --- a/Src/module.c +++ b/Src/module.c @@ -1776,7 +1776,7 @@ add_autoparam(char *nam, char *module) if ((pm = (Param) gethashnode2(paramtab, nam))) unsetparam_pm(pm, 0, 1); - pm = setsparam(ztrdup(nam), ztrdup(module)); + pm = setsparam(nam, ztrdup(module)); pm->flags |= PM_AUTOLOAD; } |