Changeset 05816dd for ipc.c


Ignore:
Timestamp:
2015-02-22T22:44:40Z (9 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
  • ipc.c

    r91f06e5 r05816dd  
    776776        }
    777777
     778        child_list = g_slist_remove(child_list, c);
     779
    778780        g_free(c->host);
    779781        g_free(c->nick);
     
    781783        g_free(c->password);
    782784        g_free(c);
    783 
    784         child_list = g_slist_remove(child_list, c);
    785785
    786786        /* Also, if any child has a reference to this one, remove it. */
Note: See TracChangeset for help on using the changeset viewer.