]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't try to allocate memory that we're just going to re-allocate later anyways.
authorJason Parker <jparker@digium.com>
Wed, 31 Oct 2007 21:16:20 +0000 (21:16 +0000)
committerJason Parker <jparker@digium.com>
Wed, 31 Oct 2007 21:16:20 +0000 (21:16 +0000)
Issue 11130, patch by eliel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_gtalk.c

index c7f3a666fd9d5aa79050bfa3a171b740cd32f0e7..e58024ea2497240162270152d839a6e9c8e69928 100644 (file)
@@ -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;