summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorGonglei2014-11-20 12:35:00 +0100
committerStefan Hajnoczi2014-11-21 11:50:54 +0100
commit7a8919dc29a9f46dcadd950c2aa1acf74f28974d (patch)
treecb0c3885530c49805e72ab8fc90cae32bbf012ea /net/socket.c
parenthw/arm/virt: set stdout-path instead of linux,stdout-path (diff)
downloadqemu-7a8919dc29a9f46dcadd950c2aa1acf74f28974d.tar.gz
qemu-7a8919dc29a9f46dcadd950c2aa1acf74f28974d.tar.xz
qemu-7a8919dc29a9f46dcadd950c2aa1acf74f28974d.zip
net/slirp: fix memory leak
commit b412eb61 introduce 'cmd:' target for guestfwd, and fwd don't be used in this scenario, and will leak memory in true branch with 'cmd:'. Let's allocate memory for fwd variable just in else statement. Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions