diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-08-01 13:00:55 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-08-01 13:00:55 +0000 |
commit | 347e5e932ccd4b01fe3e6531a3b897624ce37c21 (patch) | |
tree | 91d76cc459f743363a355d7fffa5952846fdc3b7 /hostmux | |
parent | 2c661dae2c1e02c1c920b8e4c89b27ec0604384a (diff) |
2001-08-01 Marcus Brinkmann <marcus@gnu.org>
* mux.c (free_name): Swap order of memory releases.
Reported by Kalle Olavi Niemitalo <kon@iki.fi>
Diffstat (limited to 'hostmux')
-rw-r--r-- | hostmux/ChangeLog | 5 | ||||
-rw-r--r-- | hostmux/mux.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/hostmux/ChangeLog b/hostmux/ChangeLog index 1edc482b..2d928d77 100644 --- a/hostmux/ChangeLog +++ b/hostmux/ChangeLog @@ -1,3 +1,8 @@ +2001-08-01 Marcus Brinkmann <marcus@gnu.org> + + * mux.c (free_name): Swap order of memory releases. + Reported by Kalle Olavi Niemitalo <kon@iki.fi> + 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * hostmux.c: Include <version.h>. Add global variable diff --git a/hostmux/mux.c b/hostmux/mux.c index 4e3a2a7f..17cbc35f 100644 --- a/hostmux/mux.c +++ b/hostmux/mux.c @@ -218,9 +218,9 @@ netfs_get_dirents (struct iouser *cred, struct node *dir, static void free_name (struct hostmux_name *nm) { - free ((char *)nm->name); if (nm->name != nm->canon) free ((char *)nm->canon); + free ((char *)nm->name); free (nm); } |