From a2a9da11fbc474807f8851d156acb9fa3bae8ea7 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 8 Jul 1988 10:32:28 +0000 Subject: remove erroneous free/allocs for default subscriptiosn. We want the pointers to be into static (well, pseudo-static) storage so the caller only needs to free the subscription chain. (besides, extract_subscription has stuff point into the middle of a packet anyway) --- server/subscr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'server/subscr.c') diff --git a/server/subscr.c b/server/subscr.c index d0e5eee..31fd140 100644 --- a/server/subscr.c +++ b/server/subscr.c @@ -331,13 +331,10 @@ char *person; for (subs2 = subs->q_forw; subs2 != subs; subs2 = subs2->q_forw) /* if not a wildcard, replace it with person */ if (strcmp(subs2->zst_recipient, "*")) { - xfree(subs2->zst_recipient); - subs2->zst_recipient = strsave(person); + subs2->zst_recipient = person; } else { /* replace with null recipient */ - xfree(subs2->zst_recipient); - subs2->zst_recipient = strsave(""); + subs2->zst_recipient = ""; } - return(subs); } -- cgit v1.2.3