diff options
author | Roland McGrath <roland@gnu.org> | 1999-09-13 04:30:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-09-13 04:30:18 +0000 |
commit | 2f9051c8b2777ad3398d1c070b2b25ebcc50734a (patch) | |
tree | be72e035a27045fbc846f4cd12afa20696ca3e27 /libfshelp | |
parent | 22c8756c4772696dc3aa925eb5a134fb085f7347 (diff) |
1999-09-12 Roland McGrath <roland@baalperazim.frob.com>
* delegate.c (fshelp_delegate_translation): Free ARGZ after RPC.
Diffstat (limited to 'libfshelp')
-rw-r--r-- | libfshelp/delegate.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libfshelp/delegate.c b/libfshelp/delegate.c index cb8b8365..b695a47d 100644 --- a/libfshelp/delegate.c +++ b/libfshelp/delegate.c @@ -1,8 +1,8 @@ /* fshelp_delegate_translation - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995,96,99 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Written by Miles Bader <miles@gnu.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -51,9 +51,12 @@ fshelp_delegate_translation (char *server_name, int argz_len; err = argz_create (argv, &argz, &argz_len); if (!err) - err = fsys_forward (server, - requestor, MACH_MSG_TYPE_COPY_SEND, - argz, argz_len); + { + err = fsys_forward (server, + requestor, MACH_MSG_TYPE_COPY_SEND, + argz, argz_len); + free (argz); + } } else err = errno; |