aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-31 21:16:20 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-31 21:16:20 +0000
commita7094c3618cde34236eaff790d8e20dd4905ec39 (patch)
tree3a3763affb1697f8023310fc1a230be85fe46938
parentac9c5e6b02b1678949604e1f37fbaa6229c55779 (diff)
Don't try to allocate memory that we're just going to re-allocate later anyways.
Issue 11130, patch by eliel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87906 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_gtalk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c
index c7f3a666f..e58024ea2 100644
--- a/channels/chan_gtalk.c
+++ b/channels/chan_gtalk.c
@@ -1221,9 +1221,6 @@ static int gtalk_add_candidate(struct gtalk *client, ikspak *pak)
if(!from)
from = c->jid->full;
- newcandidate = ast_calloc(1, sizeof(*newcandidate));
- if (!newcandidate)
- return 0;
for (tmp = client->p; tmp; tmp = tmp->next) {
if (iks_find_with_attrib(pak->x, "session", "id", tmp->sid)) {
p = tmp;