summaryrefslogtreecommitdiffstats
path: root/iohandler.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-11-20 19:35:00 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-11-21 10:50:54 +0000
commit7a8919dc29a9f46dcadd950c2aa1acf74f28974d (patch)
treecb0c3885530c49805e72ab8fc90cae32bbf012ea /iohandler.c
parent9c7074da5ec64e1fd61df881ab291f75541ff2b0 (diff)
downloadhqemu-7a8919dc29a9f46dcadd950c2aa1acf74f28974d.zip
hqemu-7a8919dc29a9f46dcadd950c2aa1acf74f28974d.tar.gz
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 'iohandler.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud