From 63398ef4f7f457dcb9b04c17934045cab262f4aa Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 24 Nov 2002 19:13:47 +0000 Subject: [PATCH] Fixed double frees. --- lib/silcclient/client_notify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/silcclient/client_notify.c b/lib/silcclient/client_notify.c index 4517aab1..50d5c562 100644 --- a/lib/silcclient/client_notify.c +++ b/lib/silcclient/client_notify.c @@ -572,6 +572,7 @@ void silc_client_notify_by_server(SilcClient client, if (!client_entry) goto out; silc_free(client_id); + client_id = NULL; /* Wait for resolving if necessary */ if (client_entry->status & SILC_CLIENT_STATUS_RESOLVING) { @@ -1023,6 +1024,7 @@ void silc_client_notify_by_server(SilcClient client, goto out; silc_free(channel_id); + channel_id = NULL; /* Get the new ID */ tmp = silc_argument_get_arg_type(args, 2, &tmp_len); @@ -1157,6 +1159,7 @@ void silc_client_notify_by_server(SilcClient client, tmp = silc_argument_get_arg_type(args, 3, &tmp_len); if (tmp) { silc_free(client_id); + client_id = NULL; id = silc_id_payload_parse_id(tmp, tmp_len, &id_type); if (!id) goto out; -- 2.24.0