projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9cc51
)
In USERS reply, res_argv[i] are not allocated, the table
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 1 Feb 2001 22:11:44 +0000
(22:11 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 1 Feb 2001 22:11:44 +0000
(22:11 +0000)
is allocated. Thus changed that free the table, not its
internals.
lib/silcclient/command_reply.c
patch
|
blob
|
history
diff --git
a/lib/silcclient/command_reply.c
b/lib/silcclient/command_reply.c
index 85fa37da45556fccc6b3672eacffa64488cdce2a..117683a0e7cd3064eb4110daf5171d250551ca40 100644
(file)
--- a/
lib/silcclient/command_reply.c
+++ b/
lib/silcclient/command_reply.c
@@
-1161,8
+1161,7
@@
SILC_CLIENT_CMD_REPLY_FUNC(users)
if (channel_id)
silc_free(channel_id);
- for (i = 0; i < res_argc; i++)
- silc_free(res_argv[i]);
+ silc_free(res_argv[i]);
silc_free(res_argv);
silc_free(res_argv_lens);
silc_free(res_argv_types);