9pfs: fix potential host memory leak in v9fs_read
commite95c9a493a5a8d6f969e86c9f19f80ffe6587e19
authorLi Qiang <liqiang6-s@360.cn>
Mon, 17 Oct 2016 12:13:58 +0000 (17 14:13 +0200)
committerGreg Kurz <groug@kaod.org>
Mon, 17 Oct 2016 12:13:58 +0000 (17 14:13 +0200)
tree7ad3c15b013f1c2e513673c27505a95b0dbd3163
parentba42ebb863ab7d40adc79298422ed9596df8f73a
9pfs: fix potential host memory leak in v9fs_read

In 9pfs read dispatch function, it doesn't free two QEMUIOVector
object thus causing potential memory leak. This patch avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c