diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index c7f3a666fd..e58024ea24 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;