]> git.proxmox.com Git - mirror_corosync.git/commitdiff
COVERITY 18: prevent deref after free.
authorAngus Salkeld <asalkeld@redhat.com>
Sun, 22 Nov 2009 06:22:49 +0000 (06:22 +0000)
committerAngus Salkeld <asalkeld@redhat.com>
Sun, 22 Nov 2009 06:22:49 +0000 (06:22 +0000)
Event deref_after_free: Dereferencing freed pointer "pi".

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2543 fd59a12c-fef9-0310-b244-a6a79926bd2f

services/cpg.c

index b15c253ed84f303e5426baeb442cb7274fe8e175..59d59b2434b488e4f4fbca415a0a51815c77123d 100644 (file)
@@ -830,6 +830,7 @@ static void message_handler_req_exec_cpg_downlist (
                                                    MESSAGE_RES_CPG_CONFCHG_CALLBACK);
                                list_del (&pi->list);
                                free (pi);
+                               break;
                        }
                }
        }