summaryrefslogtreecommitdiff
path: root/libfshelp/delegate.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-09-13 04:30:18 +0000
committerRoland McGrath <roland@gnu.org>1999-09-13 04:30:18 +0000
commit2f9051c8b2777ad3398d1c070b2b25ebcc50734a (patch)
treebe72e035a27045fbc846f4cd12afa20696ca3e27 /libfshelp/delegate.c
parent22c8756c4772696dc3aa925eb5a134fb085f7347 (diff)
1999-09-12 Roland McGrath <roland@baalperazim.frob.com>
* delegate.c (fshelp_delegate_translation): Free ARGZ after RPC.
Diffstat (limited to 'libfshelp/delegate.c')
-rw-r--r--libfshelp/delegate.c13
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;