Changeset 05816dd for protocols/yahoo


Ignore:
Timestamp:
2015-02-22T22:44:40Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
570f183
Parents:
91f06e5
git-author:
dequis <dx@…> (22-02-15 22:04:08)
git-committer:
dequis <dx@…> (22-02-15 22:44:40)
Message:

coverity: Fix some (harmless?) use-after-free with g_slist_remove()

These were passing a pointer to a variable right after it was g_free()'d

They are most likely harmless as g_slist_remove() probably just needs
the pointer location, but fixing it anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r91f06e5 r05816dd  
    733733                inp = l->data;
    734734                if (inp->h == tag) {
     735                        byahoo_inputs = g_slist_remove(byahoo_inputs, inp);
    735736                        g_free(inp->d);
    736737                        g_free(inp);
    737                         byahoo_inputs = g_slist_remove(byahoo_inputs, inp);
    738738                        break;
    739739                }
Note: See TracChangeset for help on using the changeset viewer.