]> git.proxmox.com Git - mirror_qemu.git/commit
net/colo: fix memory double free error
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Tue, 28 Feb 2017 03:54:18 +0000 (11:54 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (11:46 +0800)
commit0e79668e1ffcfabb259bea6c2a2bae00a6b27252
tree530745cf641ca07f3d93720fb6f782c9373024c9
parenta11f5cb005f9854f0d78da97fc23adf5bc8c83f3
net/colo: fix memory double free error

The 'primary_list' and 'secondary_list' members of struct Connection
is not allocated through dynamically g_queue_new(), but we free it by using
g_queue_free(), which will lead to a double-free bug.

Reviewed-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo.c