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 | |
parent | ed708a901be74fe49c6357db0b10f5bf451edadf (diff) | |
download | zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.gz zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.xz zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.zip |
Felix: fix for memory leak (11718)
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Src/module.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a5dc6e186..a097afb16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2000-06-02 Sven Wischnowsky <wischnow@zsh.org> + * Felix: 11718: Src/module.c: fix for memory leak + * 11722: Src/Zle/compcore.c, Src/Zle/complete.c: fix some memory leaks (thanks, Felix) 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; } |